From ce5241dc26f7a8245d09c9ab3fe4c0962dc5bc64 Mon Sep 17 00:00:00 2001 From: Thomas Nagy Date: Sat, 17 Sep 2011 02:17:14 +0200 Subject: [PATCH] issue #856 --- waflib/Context.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/waflib/Context.py b/waflib/Context.py index 143d299b..c816204a 100644 --- a/waflib/Context.py +++ b/waflib/Context.py @@ -378,11 +378,7 @@ class Context(ctx): p = subprocess.Popen(cmd, **kw) (out, err) = p.communicate() except Exception as e: - try: - self.to_log(str(err)) - except: - pass - raise Errors.WafError('Execution failure', ex=e) + raise Errors.WafError('Execution failure: %s' % str(e), ex=e) if not isinstance(out, str): out = out.decode(sys.stdout.encoding or 'iso8859-1') @@ -395,7 +391,7 @@ class Context(ctx): self.to_log('err: %s' % err) if p.returncode: - e = Errors.WafError('command %r returned %r' % (cmd, p.returncode)) + e = Errors.WafError('Command %r returned %r' % (cmd, p.returncode)) e.returncode = p.returncode e.stderr = err e.stdout = out