diff options
author | Enrico Granata <egranata@apple.com> | 2012-10-31 00:01:26 +0000 |
---|---|---|
committer | Enrico Granata <egranata@apple.com> | 2012-10-31 00:01:26 +0000 |
commit | 085577f8d0d2f60e3a6b4e4c22d8022d2988e221 (patch) | |
tree | 44d426e1096cf395e9bef22e8758f76734886297 /lldb/source/Interpreter/CommandObjectScript.cpp | |
parent | c280746b8cad81c09da2fbf45f7db75fea2d82ac (diff) | |
download | bcm5719-llvm-085577f8d0d2f60e3a6b4e4c22d8022d2988e221.tar.gz bcm5719-llvm-085577f8d0d2f60e3a6b4e4c22d8022d2988e221.zip |
<rdar://problem/12586188> Make ImportError a special case for "command script import", such that the error message for the exception becomes the error for the entire import operation
and silence the backtrace printout
In the process, refactor the Execute* commands in ScriptInterpreter to take an options object, and add a new setting to not mask out errors so that the callers can handle them directly
instead of having the default behavior
llvm-svn: 167067
Diffstat (limited to 'lldb/source/Interpreter/CommandObjectScript.cpp')
-rw-r--r-- | lldb/source/Interpreter/CommandObjectScript.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Interpreter/CommandObjectScript.cpp b/lldb/source/Interpreter/CommandObjectScript.cpp index ce097b79670..6dd2f7aba76 100644 --- a/lldb/source/Interpreter/CommandObjectScript.cpp +++ b/lldb/source/Interpreter/CommandObjectScript.cpp @@ -68,7 +68,7 @@ CommandObjectScript::DoExecute } // We can do better when reporting the status of one-liner script execution. - if (script_interpreter->ExecuteOneLine (command, &result, true)) + if (script_interpreter->ExecuteOneLine (command, &result)) result.SetStatus(eReturnStatusSuccessFinishNoResult); else result.SetStatus(eReturnStatusFailed); |