We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3366d83 commit 5f6ecfdCopy full SHA for 5f6ecfd
1 file changed
lib/configure.js
@@ -154,6 +154,10 @@ module.exports = function(overrides) {
154
// Use the appropriate color for the log level.
155
var colorMappings = _.isObject(options.colors) ? options.colors : {};
156
var colorName = colorMappings[logAt];
157
+ // Failsafe in case of troublesome configuration:
158
+ if (colorName === undefined) {
159
+ colorName = 'white';
160
+ }
161
162
// Get the ANSI-colorized prefix.
163
var colorizedPrefix = (function _getColorizedPrefix() {
0 commit comments