aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectLog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/source/Commands/CommandObjectLog.cpp')
-rw-r--r--lldb/source/Commands/CommandObjectLog.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/lldb/source/Commands/CommandObjectLog.cpp b/lldb/source/Commands/CommandObjectLog.cpp
index 48dfd94..9eb68dd 100644
--- a/lldb/source/Commands/CommandObjectLog.cpp
+++ b/lldb/source/Commands/CommandObjectLog.cpp
@@ -99,14 +99,12 @@ public:
handler = (LogHandlerKind)OptionArgParser::ToOptionEnum(
option_arg, GetDefinitions()[option_idx].enum_values, 0, error);
if (!error.Success())
- error.SetErrorStringWithFormat(
- "unrecognized value for log handler '%s'",
- option_arg.str().c_str());
+ return Status::FromErrorStringWithFormatv(
+ "unrecognized value for log handler '{0}'", option_arg);
break;
case 'b':
- error =
- buffer_size.SetValueFromString(option_arg, eVarSetOperationAssign);
- break;
+ return buffer_size.SetValueFromString(option_arg,
+ eVarSetOperationAssign);
case 'v':
log_options |= LLDB_LOG_OPTION_VERBOSE;
break;