diff options
author | Jason Molenda <jmolenda@apple.com> | 2023-11-16 13:58:07 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-16 13:58:07 -0800 |
commit | 5f64b940761002efcff04c40d6e882167d05197c (patch) | |
tree | 6bdfb07cf2bfa1131f60053d98ae4ec364726773 /lldb/source/Commands/CommandObjectTarget.cpp | |
parent | 102f7fce8d8251655be5bf6955af33e55bea9c9e (diff) | |
download | llvm-5f64b940761002efcff04c40d6e882167d05197c.zip llvm-5f64b940761002efcff04c40d6e882167d05197c.tar.gz llvm-5f64b940761002efcff04c40d6e882167d05197c.tar.bz2 |
Clarify error messages on corefiles that no plugin handles (#72559)
These error messages are written in a way that makes sense to an lldb
developer, but not to an end user who asks lldb to run on a compressed
corefile or whatever. Simplfy the messages.
Diffstat (limited to 'lldb/source/Commands/CommandObjectTarget.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectTarget.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lldb/source/Commands/CommandObjectTarget.cpp b/lldb/source/Commands/CommandObjectTarget.cpp index 8f052d0..58785cd 100644 --- a/lldb/source/Commands/CommandObjectTarget.cpp +++ b/lldb/source/Commands/CommandObjectTarget.cpp @@ -436,8 +436,7 @@ protected: error = process_sp->LoadCore(); if (error.Fail()) { - result.AppendError( - error.AsCString("can't find plug-in for core file")); + result.AppendError(error.AsCString("unknown core file format")); return; } else { result.AppendMessageWithFormatv( @@ -447,9 +446,8 @@ protected: on_error.release(); } } else { - result.AppendErrorWithFormatv( - "Unable to find process plug-in for core file '{0}'\n", - core_file.GetPath()); + result.AppendErrorWithFormatv("Unknown core file format '{0}'\n", + core_file.GetPath()); } } else { result.AppendMessageWithFormat( |