From 85038a5947183e0ead7bd81d7b481228e1e0d13a Mon Sep 17 00:00:00 2001 From: Mahmoud Al-Qudsi Date: Mon, 4 Feb 2019 17:02:15 -0600 Subject: Add braces to clarify conditional scope --- src/build.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/build.cc b/src/build.cc index c1a88e9..386fa65 100644 --- a/src/build.cc +++ b/src/build.cc @@ -138,10 +138,11 @@ void BuildStatus::BuildEdgeFinished(Edge* edge, o != edge->outputs_.end(); ++o) outputs += (*o)->path() + " "; - if (printer_.supports_color()) + if (printer_.supports_color()) { printer_.PrintOnNewLine("\x1B[31m" "FAILED: " "\x1B[0m" + outputs + "\n"); - else + } else { printer_.PrintOnNewLine("FAILED: " + outputs + "\n"); + } printer_.PrintOnNewLine(edge->EvaluateCommand() + "\n"); } -- cgit v0.12