From 085577f8d0d2f60e3a6b4e4c22d8022d2988e221 Mon Sep 17 00:00:00 2001 From: Enrico Granata Date: Wed, 31 Oct 2012 00:01:26 +0000 Subject: 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 --- lldb/source/Interpreter/CommandObjectScript.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lldb/source/Interpreter/CommandObjectScript.cpp') 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); -- cgit v1.2.3