jedcunningham commented on a change in pull request #21991:
URL: https://github.com/apache/airflow/pull/21991#discussion_r822019444
##########
File path: airflow/cli/commands/dag_command.py
##########
@@ -315,6 +315,14 @@ def dag_next_execution(args):
def dag_list_dags(args):
"""Displays dags with or without stats at the command line"""
dagbag = DagBag(process_subdir(args.subdir))
+ if dagbag.import_errors:
+ from rich import print as rich_print
+
+ rich_print(
+ "[red][bold]Error:[/bold] Failed to load all files. "
+ "For details, run airflow dags list-import-errors",
Review comment:
```suggestion
"For details, run `airflow dags list-import-errors`",
```
nit
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]