diff options
author | Bruce Mitchener <bruce.mitchener@gmail.com> | 2013-02-20 16:21:12 +0700 |
---|---|---|
committer | Bruce Mitchener <bruce.mitchener@gmail.com> | 2013-02-20 16:23:08 +0700 |
commit | b63fde6a7fe863c6f3448e2b63d3e17eb9bb0d83 (patch) | |
tree | 8463785cb2c9135f58ab04888efe6af06d7faeea /tools/shared.py | |
parent | 29244f1f86a71419919c5d0e850db7672ee38056 (diff) |
Provide error message on invalid command to emmake.
Previously, this would just throw an exception, now it provides
a reasonable error message.
Diffstat (limited to 'tools/shared.py')
-rw-r--r-- | tools/shared.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/shared.py b/tools/shared.py index 401a580b..7c1490c0 100644 --- a/tools/shared.py +++ b/tools/shared.py @@ -662,6 +662,9 @@ set(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)''' % { 'winfix': '' if not WINDOWS e def make(args, stdout=None, stderr=None, env=None): if env is None: env = Building.get_building_env() + if not args: + print >> sys.stderr, 'Error: Executable to run not specified.' + sys.exit(1) #args += ['VERBOSE=1'] try: Popen(args, stdout=stdout, stderr=stderr, env=env).communicate() |