diff options
-rwxr-xr-x | checkcolor.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/checkcolor.py b/checkcolor.py index 9e62d3d..204c7e5 100755 --- a/checkcolor.py +++ b/checkcolor.py @@ -72,6 +72,9 @@ def RunCheckOnProject(root): except OSError as e: if e.errno == errno.ENOENT: print 'Error in color lint check' + if not os.environ.get('ANDROID_BUILD_TOP'): + print 'Try setting up your environment first:' + print ' source build/envsetup.sh && lunch <target>' sys.exit(1) return (exitcode, stdout) |