third_party:waf: fix a mis-merge - Utils.check_dir issue
authorThomas Nagy <tnagy@waf.io>
Fri, 26 Jun 2015 18:17:06 +0000 (20:17 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 1 Sep 2015 22:47:18 +0000 (00:47 +0200)
Signed-off-by: Thomas Nagy <tnagy@waf.io>
Reviewed-by: Michael Adam <obnox@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
third_party/waf/wafadmin/Utils.py

index 03b4229f02c49e51bf53d7b4afcf081f2ee34193..abb46a78b36c5e305d4f9fe461aebd719b0a0073 100644 (file)
@@ -455,8 +455,7 @@ def check_dir(path):
                        os.makedirs(path)
                except OSError, e:
                        if not os.path.isdir(path):
-                               raise Errors.WafError('Cannot create the folder %r' % path, ex=e)
-
+                               raise WafError("Cannot create the folder '%s' (error: %s)" % (path, e))
 
 def cmd_output(cmd, **kw):