diff options
Diffstat (limited to 'lldb/source/Breakpoint/BreakpointResolverFileRegex.cpp')
| -rw-r--r-- | lldb/source/Breakpoint/BreakpointResolverFileRegex.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lldb/source/Breakpoint/BreakpointResolverFileRegex.cpp b/lldb/source/Breakpoint/BreakpointResolverFileRegex.cpp index 06d346afb9f6..0509924e6300 100644 --- a/lldb/source/Breakpoint/BreakpointResolverFileRegex.cpp +++ b/lldb/source/Breakpoint/BreakpointResolverFileRegex.cpp @@ -34,7 +34,7 @@ BreakpointResolverSP BreakpointResolverFileRegex::CreateFromStructuredData( success = options_dict.GetValueForKeyAsString( GetKey(OptionNames::RegexString), regex_string); if (!success) { - error.SetErrorString("BRFR::CFSD: Couldn't find regex entry."); + error = Status::FromErrorString("BRFR::CFSD: Couldn't find regex entry."); return nullptr; } RegularExpression regex(regex_string); @@ -43,7 +43,8 @@ BreakpointResolverSP BreakpointResolverFileRegex::CreateFromStructuredData( success = options_dict.GetValueForKeyAsBoolean( GetKey(OptionNames::ExactMatch), exact_match); if (!success) { - error.SetErrorString("BRFL::CFSD: Couldn't find exact match entry."); + error = + Status::FromErrorString("BRFL::CFSD: Couldn't find exact match entry."); return nullptr; } @@ -58,8 +59,8 @@ BreakpointResolverSP BreakpointResolverFileRegex::CreateFromStructuredData( std::optional<llvm::StringRef> maybe_name = names_array->GetItemAtIndexAsString(i); if (!maybe_name) { - error.SetErrorStringWithFormat( - "BRFR::CFSD: Malformed element %zu in the names array.", i); + error = Status::FromErrorStringWithFormatv( + "BRFR::CFSD: Malformed element {0} in the names array.", i); return nullptr; } names_set.insert(std::string(*maybe_name)); |
