[llvm] bbc3af0 - [dsymutil] Add missing newlines in error messages. (#115191)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 6 15:54:50 PST 2024
Author: Ryan Mansfield
Date: 2024-11-06T15:54:47-08:00
New Revision: bbc3af0577a05bf5c06f5c39d51b7d48bd63d65f
URL: https://github.com/llvm/llvm-project/commit/bbc3af0577a05bf5c06f5c39d51b7d48bd63d65f
DIFF: https://github.com/llvm/llvm-project/commit/bbc3af0577a05bf5c06f5c39d51b7d48bd63d65f.diff
LOG: [dsymutil] Add missing newlines in error messages. (#115191)
Errors like "cannot create bundle: Not a directory" or "error:
a.out.dSYM: Is a directory" were being emitted without a newline.
Added:
Modified:
llvm/tools/dsymutil/dsymutil.cpp
Removed:
################################################################################
diff --git a/llvm/tools/dsymutil/dsymutil.cpp b/llvm/tools/dsymutil/dsymutil.cpp
index 754d3a0f26c3d1..2ace7180b00808 100644
--- a/llvm/tools/dsymutil/dsymutil.cpp
+++ b/llvm/tools/dsymutil/dsymutil.cpp
@@ -714,7 +714,7 @@ int dsymutil_main(int argc, char **argv, const llvm::ToolContext &) {
Expected<OutputLocation> OutputLocationOrErr =
getOutputFileName(InputFile, Options);
if (!OutputLocationOrErr) {
- WithColor::error() << toString(OutputLocationOrErr.takeError());
+ WithColor::error() << toString(OutputLocationOrErr.takeError()) << "\n";
return EXIT_FAILURE;
}
Options.LinkOpts.ResourceDir = OutputLocationOrErr->getResourceDir();
@@ -792,7 +792,7 @@ int dsymutil_main(int argc, char **argv, const llvm::ToolContext &) {
Options.LinkOpts.NoOutput ? "-" : OutputFile, EC,
sys::fs::OF_None);
if (EC) {
- WithColor::error() << OutputFile << ": " << EC.message();
+ WithColor::error() << OutputFile << ": " << EC.message() << "\n";
AllOK.fetch_and(false);
return;
}
More information about the llvm-commits
mailing list