From b6bd4618eb0fccb7cc855c01ba6cdefb3af17ea4 Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Fri, 22 Apr 2016 22:15:59 +0000 Subject: Fix a build-llvm.py crasher when we can't find cmake. Now it exits with a valid error that explains what went wrong. llvm-svn: 267235 --- lldb/scripts/Xcode/build-llvm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lldb/scripts/Xcode/build-llvm.py') diff --git a/lldb/scripts/Xcode/build-llvm.py b/lldb/scripts/Xcode/build-llvm.py index 72779bc29dc..453969a90ef 100755 --- a/lldb/scripts/Xcode/build-llvm.py +++ b/lldb/scripts/Xcode/build-llvm.py @@ -249,7 +249,7 @@ def find_cmake (): return cmake_binary # We couldn't find cmake. Tell the user what to do. - raise( + raise Exception( "could not find cmake in PATH ({}) or in any of these locations ({}), " "please install cmake or add a link to it in one of those locations".format( os.environ["PATH"], -- cgit v1.2.3