From dc081720f2a562d24caadabc2a4ae8d70025254f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Val=C3=A9rian=20Galliat?= Date: Tue, 24 Mar 2015 08:38:45 +0100 Subject: [PATCH] Don't assume `process.stderr` is an object It's typically not set in Browserify. --- src/logger.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/logger.js b/src/logger.js index 868fa29b..95260ac2 100644 --- a/src/logger.js +++ b/src/logger.js @@ -4,7 +4,7 @@ import { format as fmt } from 'util'; import chalkModule from 'chalk'; const chalk = new chalkModule.constructor({ - enabled: process.stderr.isTTY, + enabled: process.stderr && process.stderr.isTTY, }); // Special chars.