airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fo...@apache.org
Subject incubator-airflow git commit: [AIRFLOW-2142] Include message on mkdir failure
Date Sat, 24 Feb 2018 15:11:23 GMT
Repository: incubator-airflow
Updated Branches:
  refs/heads/master 662d6cfa5 -> 2ce8083ac


[AIRFLOW-2142] Include message on mkdir failure

Closes #3068 from wrp/errstr


Project: http://git-wip-us.apache.org/repos/asf/incubator-airflow/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-airflow/commit/2ce8083a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-airflow/tree/2ce8083a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-airflow/diff/2ce8083a

Branch: refs/heads/master
Commit: 2ce8083acf702c27d120724d912aaf2c893d05b8
Parents: 662d6cf
Author: William Pursell <williamp@wepay.com>
Authored: Sat Feb 24 16:11:03 2018 +0100
Committer: Fokko Driesprong <fokkodriesprong@godatadriven.com>
Committed: Sat Feb 24 16:11:07 2018 +0100

----------------------------------------------------------------------
 airflow/configuration.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-airflow/blob/2ce8083a/airflow/configuration.py
----------------------------------------------------------------------
diff --git a/airflow/configuration.py b/airflow/configuration.py
index 2bb2a49..30fa7fe 100644
--- a/airflow/configuration.py
+++ b/airflow/configuration.py
@@ -337,7 +337,8 @@ def mkdir_p(path):
         if exc.errno == errno.EEXIST and os.path.isdir(path):
             pass
         else:
-            raise AirflowConfigException('Had trouble creating a directory')
+            raise AirflowConfigException(
+                'Error creating {}: {}'.format(path, exc.strerror))
 
 
 # Setting AIRFLOW_HOME and AIRFLOW_CONFIG from environment variables, using


Mime
View raw message