| Index: gn.py
|
| diff --git a/gn.py b/gn.py
|
| index e3bcc978356f7e473387629fa57352efb3dff31b..325e685d776035651a8b6c4c6a5d9dd0ee233883 100755
|
| --- a/gn.py
|
| +++ b/gn.py
|
| @@ -24,9 +24,13 @@ def main(args):
|
| print >> sys.stderr, ('gn.py: Could not find checkout in any parent of '
|
| 'the current path.\nThis must be run inside a '
|
| 'checkout.')
|
| - sys.exit(1)
|
| + return 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
|
| + return 2
|
| + else:
|
| + return subprocess.call([gn_path] + sys.argv[1:])
|
|
|
|
|
| if __name__ == '__main__':
|
|
|