diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2019-11-25 11:52:51 +0100 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2019-11-25 11:52:51 +0100 |
commit | 58caad188d5d4cd2ea6fb4c2da723d9cab379c0f (patch) | |
tree | edcdd15d33566ffbeb1a63d2f6b58b49beab0c47 /lib | |
parent | a42fe28e37afe8e9be34e231906ea62ca60c49ca (diff) |
runner: show failing command on build failure
Diffstat (limited to 'lib')
-rw-r--r-- | lib/runner.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/runner.py b/lib/runner.py index 32eb950..85df2b6 100644 --- a/lib/runner.py +++ b/lib/runner.py @@ -290,13 +290,13 @@ def build(arch, app, opts=[]): res = subprocess.run(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True) if res.returncode != 0: - raise RuntimeError('Build failure: ' + res.stderr) + raise RuntimeError('Build failure, executing {}:\n'.format(command) + res.stderr) command = ['make', '-B', 'arch={}'.format(arch), 'app={}'.format(app)] command.extend(opts) res = subprocess.run(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE, universal_newlines=True) if res.returncode != 0: - raise RuntimeError('Build failure: ' + res.stderr) + raise RuntimeError('Build failure, executing {}:\n '.format(command) + res.stderr) return command |