Skip to content

Commit bbc3af0

Browse files
authored
[dsymutil] Add missing newlines in error messages. (llvm#115191)
Errors like "cannot create bundle: Not a directory" or "error: a.out.dSYM: Is a directory" were being emitted without a newline.
1 parent cacbe71 commit bbc3af0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/tools/dsymutil/dsymutil.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@ int dsymutil_main(int argc, char **argv, const llvm::ToolContext &) {
714714
Expected<OutputLocation> OutputLocationOrErr =
715715
getOutputFileName(InputFile, Options);
716716
if (!OutputLocationOrErr) {
717-
WithColor::error() << toString(OutputLocationOrErr.takeError());
717+
WithColor::error() << toString(OutputLocationOrErr.takeError()) << "\n";
718718
return EXIT_FAILURE;
719719
}
720720
Options.LinkOpts.ResourceDir = OutputLocationOrErr->getResourceDir();
@@ -792,7 +792,7 @@ int dsymutil_main(int argc, char **argv, const llvm::ToolContext &) {
792792
Options.LinkOpts.NoOutput ? "-" : OutputFile, EC,
793793
sys::fs::OF_None);
794794
if (EC) {
795-
WithColor::error() << OutputFile << ": " << EC.message();
795+
WithColor::error() << OutputFile << ": " << EC.message() << "\n";
796796
AllOK.fetch_and(false);
797797
return;
798798
}

0 commit comments

Comments
 (0)