From 1cf530a398bf91fdd362f6552c974eea850a4699 Mon Sep 17 00:00:00 2001 From: Oleh Prypin Date: Sat, 28 Mar 2020 00:44:40 +0100 Subject: [PATCH] Respect --no-color for the error indicator in stack traces Regressed in #8892 --- src/compiler/crystal/exception.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/crystal/exception.cr b/src/compiler/crystal/exception.cr index cc202107f6b4..5f3bb580d52a 100644 --- a/src/compiler/crystal/exception.cr +++ b/src/compiler/crystal/exception.cr @@ -128,7 +128,7 @@ module Crystal size ||= 0 io << '\n' io << (" " * (offset + column_number - 1)) - Colorize.with.green.bold.surround(io) do + with_color.green.bold.surround(io) do io << '^' if size > 0 io << ("-" * (size - 1))