aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectCommands.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Commands/CommandObjectCommands.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectCommands.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/lldb/source/Commands/CommandObjectCommands.cpp b/lldb/source/Commands/CommandObjectCommands.cpp
index bbea085..2791139 100644
--- a/lldb/source/Commands/CommandObjectCommands.cpp
+++ b/lldb/source/Commands/CommandObjectCommands.cpp
@@ -326,9 +326,7 @@ protected:
switch (short_option)
{
case 'e':
- m_stop_on_error.SetCurrentValue(Args::StringToBoolean(option_arg, true, &success));
- if (!success)
- error.SetErrorStringWithFormat("invalid value for stop-on-error: %s", option_arg);
+ error = m_stop_on_error.SetValueFromCString(option_arg);
break;
case 'c':
m_stop_on_continue = Args::StringToBoolean(option_arg, true, &success);