[GN] Fix gn_run_binary.py for different error

The debian package builder is throwing a different kind of error.

related #31613

Change-Id: I293b31aab310867656ba05b6f62afc8bdc9285e4
Reviewed-on: https://dart-review.googlesource.com/30467
Reviewed-by: Ryan Macnak <rmacnak@google.com>
Commit-Queue: Zach Anderson <zra@google.com>
This commit is contained in:
Zachary Anderson 2017-12-19 20:30:58 +00:00 committed by commit-bot@chromium.org
parent cf0b75bc1d
commit 75a50a1c1c

View file

@ -26,6 +26,9 @@ def run_command(command):
except subprocess.CalledProcessError as e:
return ("Command failed: " + ' '.join(command) + "\n" +
"output: " + e.output)
except OSError as e:
return ("Command failed: " + ' '.join(command) + "\n" +
"output: " + e.strerror)
def main(argv):
error_exit = 0