Chromium Code Reviews| Index: gn.py |
| diff --git a/gn.py b/gn.py |
| index e3bcc978356f7e473387629fa57352efb3dff31b..833805fdd89d122134ba82f310cc1e3532e14db5 100755 |
| --- a/gn.py |
| +++ b/gn.py |
| @@ -26,7 +26,10 @@ def main(args): |
| 'checkout.') |
| sys.exit(1) |
| gn_path = os.path.join(bin_path, 'gn' + gclient_utils.GetExeSuffix()) |
| - return subprocess.call([gn_path] + sys.argv[1:]) |
| + if not os.path.exists(gn_path): |
| + print >> sys.stderr, 'gn.py: Could not find gn executable at: %s' % gn_path |
|
agable
2014/09/05 11:31:53
return 1 after this print, for an unsuccessful exi
kjellander_chromium
2014/09/05 12:24:31
Done.
|
| + else: |
| + return subprocess.call([gn_path] + sys.argv[1:]) |
| if __name__ == '__main__': |