diff options
author | Mahmoud Al-Qudsi <mqudsi@neosmart.net> | 2019-02-04 23:02:15 (GMT) |
---|---|---|
committer | Mahmoud Al-Qudsi <mqudsi@neosmart.net> | 2019-02-04 23:02:15 (GMT) |
commit | 85038a5947183e0ead7bd81d7b481228e1e0d13a (patch) | |
tree | fe8f478bfa7481990db4805505ce250b9b59c8d4 /src/build.cc | |
parent | 342b939bd3f32c43cf49825aa4ec7d8a8ba4cffd (diff) | |
download | Ninja-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.cc | 5 |
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"); } |