diff options
Diffstat (limited to 'lldb/source/Commands/CommandObjectWatchpointCommand.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectWatchpointCommand.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lldb/source/Commands/CommandObjectWatchpointCommand.cpp b/lldb/source/Commands/CommandObjectWatchpointCommand.cpp index cc4cb76..ab1a2b3 100644 --- a/lldb/source/Commands/CommandObjectWatchpointCommand.cpp +++ b/lldb/source/Commands/CommandObjectWatchpointCommand.cpp @@ -309,9 +309,8 @@ are no syntax errors may indicate that a function was declared but never called. m_stop_on_error = OptionArgParser::ToBoolean(option_arg, false, &success); if (!success) - error.SetErrorStringWithFormat( - "invalid value for stop-on-error: \"%s\"", - option_arg.str().c_str()); + return Status::FromErrorStringWithFormatv( + "invalid value for stop-on-error: \"{0}\"", option_arg); } break; case 'F': |