aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/runtime/commands/InfoCommand.java
diff options
context:
space:
mode:
authorGravatar Googler <noreply@google.com>2015-07-21 15:27:35 +0000
committerGravatar Kristina Chodorow <kchodorow@google.com>2015-07-21 15:13:39 -0400
commit2e7a5b47979b2679208a97a65df265be953eb595 (patch)
tree46d02b16006cc7e9ca4d258d5677abdad629044c /src/main/java/com/google/devtools/build/lib/runtime/commands/InfoCommand.java
parente8fcd75b80b20bcbaccddaaa106d970f1786a635 (diff)
Fixed bug where blaze run with the --color=no flag was still printing out in color when the build fails.
-- MOS_MIGRATED_REVID=98736813
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/runtime/commands/InfoCommand.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/runtime/commands/InfoCommand.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/runtime/commands/InfoCommand.java b/src/main/java/com/google/devtools/build/lib/runtime/commands/InfoCommand.java
index 2448d90aca..d1f18cefcd 100644
--- a/src/main/java/com/google/devtools/build/lib/runtime/commands/InfoCommand.java
+++ b/src/main/java/com/google/devtools/build/lib/runtime/commands/InfoCommand.java
@@ -181,8 +181,8 @@ public class InfoCommand implements BlazeCommand {
@Override
public ExitCode exec(final BlazeRuntime runtime, final OptionsProvider optionsProvider) {
+ runtime.getReporter().switchToAnsiAllowingHandler();
Options infoOptions = optionsProvider.getOptions(Options.class);
-
OutErr outErr = runtime.getReporter().getOutErr();
// Creating a BuildConfiguration is expensive and often unnecessary. Delay the creation until
// it is needed.