summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMahmoud Al-Qudsi <mqudsi@neosmart.net>2019-02-04 17:02:15 -0600
committerMahmoud Al-Qudsi <mqudsi@neosmart.net>2019-02-04 17:02:15 -0600
commit85038a5947183e0ead7bd81d7b481228e1e0d13a (patch)
treefe8f478bfa7481990db4805505ce250b9b59c8d4
parent342b939bd3f32c43cf49825aa4ec7d8a8ba4cffd (diff)
downloadninja-85038a5947183e0ead7bd81d7b481228e1e0d13a.tar.gz
Add braces to clarify conditional scope
-rw-r--r--src/build.cc5
1 files 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");
}