Skip to content

Commit

Permalink
Don't assume process.stderr is an object
Browse files Browse the repository at this point in the history
It's typically not set in Browserify.
  • Loading branch information
valeriangalliat committed Mar 24, 2015
1 parent 60468bb commit dc08172
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit dc08172

Please sign in to comment.