diff options
Diffstat (limited to 'chromium/build/gn_run_binary.py')
-rw-r--r-- | chromium/build/gn_run_binary.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/chromium/build/gn_run_binary.py b/chromium/build/gn_run_binary.py index 6bf9e295e85..d7f7165e18c 100644 --- a/chromium/build/gn_run_binary.py +++ b/chromium/build/gn_run_binary.py @@ -21,5 +21,11 @@ args = [path] + sys.argv[2:] ret = subprocess.call(args) if ret != 0: - print '%s failed with exit code %d' % (sys.argv[1], ret) + if ret <= -100: + # Windows error codes such as 0xC0000005 and 0xC0000409 are much easier to + # recognize and differentiate in hex. In order to print them as unsigned + # hex we need to add 4 Gig to them. + print '%s failed with exit code 0x%08X' % (sys.argv[1], ret + (1 << 32)) + else: + print '%s failed with exit code %d' % (sys.argv[1], ret) sys.exit(ret) |