Consider the error:
Broken DAG: [/usr/local/airflow/dags/mydag.py] Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/airflow/models/baseoperator.py", line 840, in dag
dag.add_task(self)
File "/usr/local/lib/python3.7/site-packages/airflow/models/dag.py", line 2139, in add_task
raise AirflowException("Task is missing the start_date parameter")
airflow.exceptions.AirflowException: Task is missing the start_date parameter
As you can see the top error fiel is /usr/local/airflow/dags/mydag.py
but how to get line number where errors rised?