summaryrefslogtreecommitdiffstats
path: root/src/build.cc
diff options
context:
space:
mode:
authorMahmoud Al-Qudsi <mqudsi@neosmart.net>2019-02-04 23:02:15 (GMT)
committerMahmoud Al-Qudsi <mqudsi@neosmart.net>2019-02-04 23:02:15 (GMT)
commit85038a5947183e0ead7bd81d7b481228e1e0d13a (patch)
treefe8f478bfa7481990db4805505ce250b9b59c8d4 /src/build.cc
parent342b939bd3f32c43cf49825aa4ec7d8a8ba4cffd (diff)
downloadNinja-85038a5947183e0ead7bd81d7b481228e1e0d13a.zip
Ninja-85038a5947183e0ead7bd81d7b481228e1e0d13a.tar.gz
Ninja-85038a5947183e0ead7bd81d7b481228e1e0d13a.tar.bz2
Add braces to clarify conditional scope
Diffstat (limited to 'src/build.cc')
-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");
}