akifcakir commented on a change in pull request #21709:
URL: https://github.com/apache/airflow/pull/21709#discussion_r812146616



##########
File path: airflow/providers/databricks/operators/databricks.py
##########
@@ -87,7 +87,10 @@ def _handle_databricks_operator_execution(operator, hook, 
log, context) -> None:
                     log.info('View run status, Spark UI, and logs at %s', 
run_page_url)
                     return
                 else:
-                    error_message = f'{operator.task_id} failed with terminal 
state: {run_state}'
+                    run_output = hook.get_run_output(operator.run_id)
+                    notebook_error = run_output['error']
+                    error_message = f'{operator.task_id} failed with terminal 
state: {run_state} ' \

Review comment:
       added here, can you please check ? 
:https://github.com/apache/airflow/pull/21709/commits/c5846a8fb3a4002cb6d1fd351838faddbce9bca3




-- 
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]


Reply via email to