Skip to content

Commit 75a50a1

Browse files
zandersocommit-bot@chromium.org
authored andcommitted
[GN] Fix gn_run_binary.py for different error
The debian package builder is throwing a different kind of error. related dart-lang#31613 Change-Id: I293b31aab310867656ba05b6f62afc8bdc9285e4 Reviewed-on: https://dart-review.googlesource.com/30467 Reviewed-by: Ryan Macnak <[email protected]> Commit-Queue: Zach Anderson <[email protected]>
1 parent cf0b75b commit 75a50a1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

build/gn_run_binary.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ def run_command(command):
2626
except subprocess.CalledProcessError as e:
2727
return ("Command failed: " + ' '.join(command) + "\n" +
2828
"output: " + e.output)
29+
except OSError as e:
30+
return ("Command failed: " + ' '.join(command) + "\n" +
31+
"output: " + e.strerror)
2932

3033
def main(argv):
3134
error_exit = 0

0 commit comments

Comments
 (0)