Skip to content

Commit c0a10b2

Browse files
committed
llvm-reduce: Use WithColor in another place
Use more consistently capitalized/colorized/punctuated error messages.
1 parent 4c7f500 commit c0a10b2

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

llvm/tools/llvm-reduce/ReducerWorkItem.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,8 @@ bool ReducerWorkItem::isReduced(const TestRunner &Test) const {
443443
CurrentFilepath,
444444
UseBitcode && !isMIR() ? sys::fs::OF_None : sys::fs::OF_Text);
445445
if (EC) {
446-
errs() << "Error making unique filename: " << EC.message() << "!\n";
446+
WithColor::error(errs(), Test.getToolName())
447+
<< "error making unique filename: " << EC.message() << '\n';
447448
exit(1);
448449
}
449450

@@ -453,8 +454,9 @@ bool ReducerWorkItem::isReduced(const TestRunner &Test) const {
453454

454455
Out.os().close();
455456
if (Out.os().has_error()) {
456-
errs() << "Error emitting bitcode to file '" << CurrentFilepath
457-
<< "': " << Out.os().error().message();
457+
WithColor::error(errs(), Test.getToolName())
458+
<< "error emitting bitcode to file '" << CurrentFilepath
459+
<< "': " << Out.os().error().message() << '\n';
458460
exit(1);
459461
}
460462

0 commit comments

Comments
 (0)