You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "jack (JIRA)" <ji...@apache.org> on 2018/10/04 14:49:00 UTC

[jira] [Created] (AIRFLOW-3158) Improve error message for Broken DAG by adding function name

jack created AIRFLOW-3158:
-----------------------------

             Summary: Improve error message for Broken DAG by adding function name
                 Key: AIRFLOW-3158
                 URL: https://issues.apache.org/jira/browse/AIRFLOW-3158
             Project: Apache Airflow
          Issue Type: Task
    Affects Versions: 1.9.0
            Reporter: jack


The following message appears

{color:#a94442}Broken DAG: [/home/ubuntu/airflow/dags/a_dag.py] Relationships can only be set between Operators; received function{color}

When generating
{code:java}
A >> B{code}
 

in case A is an operator and B is a function.

The error message could be improved if it will be

{color:#a94442}Broken DAG: [/home/ubuntu/airflow/dags/a_dag.py] Relationships can only be set between Operators; received function B{color}

This is a small change that makes the error user friendly and specify where exactly is the issue.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)