diff options
| author | kumar <kumar.mcmillan@gmail.com> | 2011-07-26 09:34:39 -0500 |
|---|---|---|
| committer | kumar <kumar.mcmillan@gmail.com> | 2011-07-26 09:34:39 -0500 |
| commit | 93aa4d1acfcbeee6ae1d06005d2fd1f5149bed45 (patch) | |
| tree | d1efa28f00ec17e382d578ef6232bee8261e2e29 /scripts | |
| parent | 2c4a1ef665c6975ce210d68e72c8c82585c1b8a3 (diff) | |
| download | nose-93aa4d1acfcbeee6ae1d06005d2fd1f5149bed45.tar.gz | |
Better exception when there is a lot of output from a command
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/mkrelease.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/mkrelease.py b/scripts/mkrelease.py index 9131147..0b7a70c 100755 --- a/scripts/mkrelease.py +++ b/scripts/mkrelease.py @@ -25,7 +25,8 @@ def runcmd(cmd): if not SIMULATE: (status,output) = getstatusoutput(cmd) if status != success: - raise Exception(output) + sys.stderr.write(output) + raise Exception('command did not exit successfully') def cd(dir): |
