| Index: editor/tools/compile_analyzer.py
|
| diff --git a/editor/tools/compile_analyzer.py b/editor/tools/compile_analyzer.py
|
| index 53bd00916f69f5551bdc5e6bef6bf92a2c8c76ad..5fdb399f708ff073d3683967b86794b5df33ecd1 100644
|
| --- a/editor/tools/compile_analyzer.py
|
| +++ b/editor/tools/compile_analyzer.py
|
| @@ -96,11 +96,12 @@ def VerifyJavacGetPath():
|
| javac_path = GetJavacPath()
|
| try:
|
| subprocess.check_output([javac_path, "-version"])
|
| - except:
|
| + except (OSError, subprocess.CalledProcessError), e:
|
| print "You do not have JDK installed, can't build the analyzer"
|
| + print "Reason: %s" % e
|
| exit(1)
|
| return javac_path
|
| -
|
| +
|
| def GetJavacPath():
|
| if 'JAVA_HOME' in os.environ:
|
| return join(os.environ['JAVA_HOME'], 'bin',
|
|
|