diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/build.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/build.cc b/src/build.cc index b392803..c1a88e9 100644 --- a/src/build.cc +++ b/src/build.cc @@ -138,7 +138,10 @@ void BuildStatus::BuildEdgeFinished(Edge* edge, o != edge->outputs_.end(); ++o) outputs += (*o)->path() + " "; - printer_.PrintOnNewLine("FAILED: " + outputs + "\n"); + if (printer_.supports_color()) + printer_.PrintOnNewLine("\x1B[31m" "FAILED: " "\x1B[0m" + outputs + "\n"); + else + printer_.PrintOnNewLine("FAILED: " + outputs + "\n"); printer_.PrintOnNewLine(edge->EvaluateCommand() + "\n"); } |