summaryrefslogtreecommitdiff
path: root/lib/internal/errors.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/internal/errors.js')
-rw-r--r--lib/internal/errors.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/internal/errors.js b/lib/internal/errors.js
index 3382d137f7..39e6b6deda 100644
--- a/lib/internal/errors.js
+++ b/lib/internal/errors.js
@@ -661,8 +661,8 @@ const fatalExceptionStackEnhancers = {
colors: defaultColors
}
} = lazyInternalUtilInspect();
- const colors = internalBinding('util').guessHandleType(2) === 'TTY' &&
- require('internal/tty').hasColors() ||
+ const colors = (internalBinding('util').guessHandleType(2) === 'TTY' &&
+ require('internal/tty').hasColors()) ||
defaultColors;
try {
return inspect(error, { colors });