Skip to content

Commit

Permalink
Add a warning emoji to the logger (#588)
Browse files Browse the repository at this point in the history
  • Loading branch information
fathyb authored and devongovett committed Jan 20, 2018
1 parent a120fbb commit 25cf217
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/Logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class Logger {
return;
}

this.write(this.chalk.yellow(message));
this.write(this.chalk.yellow(`${emoji.warning} ${message}`));
}

error(err) {
Expand Down
1 change: 1 addition & 0 deletions src/utils/emoji.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ const supportsEmoji = process.platform !== 'win32' || process.env.VSCODE_PID;
exports.progress = supportsEmoji ? '⏳' : '∞';
exports.success = supportsEmoji ? '✨' : '√';
exports.error = supportsEmoji ? '🚨' : '×';
exports.warning = supportsEmoji ? '⚠️' : '‼';

0 comments on commit 25cf217

Please sign in to comment.