diff options
Diffstat (limited to 'lldb/source/Commands/CommandObjectScripting.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectScripting.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/source/Commands/CommandObjectScripting.cpp b/lldb/source/Commands/CommandObjectScripting.cpp index 698e297..9a1a2b6 100644 --- a/lldb/source/Commands/CommandObjectScripting.cpp +++ b/lldb/source/Commands/CommandObjectScripting.cpp @@ -56,8 +56,8 @@ public: option_arg, GetDefinitions()[option_idx].enum_values, eScriptLanguageNone, error); if (!error.Success()) - error.SetErrorStringWithFormat("unrecognized value for language '%s'", - option_arg.str().c_str()); + error = Status::FromErrorStringWithFormat( + "unrecognized value for language '%s'", option_arg.str().c_str()); break; default: llvm_unreachable("Unimplemented option"); @@ -159,7 +159,7 @@ public: option_arg, GetDefinitions()[option_idx].enum_values, eScriptLanguageNone, error); if (!error.Success()) - error.SetErrorStringWithFormatv( + error = Status::FromErrorStringWithFormatv( "unrecognized value for language '{0}'", option_arg); break; default: |