Skip to content

Commit c325f38

Browse files
committed
Highlight plugin name in error
1 parent b1ad703 commit c325f38

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ module.exports = {
118118
enabled: true,
119119
errorHandler: function(err, plugin) { // custom error message output
120120
var beep = '\x07';
121-
var message = beep + '[' + (plugin || err.plugin) + '] ' + err.name;
121+
var message = beep + '[' + chalk.magenta(plugin || err.plugin) + '] ' + err.name;
122122

123123
if (err.fileName) {
124124
message += ' in ' + path.relative(process.cwd(), err.fileName) + ':' + chalk.bold(err.lineNumber);

0 commit comments

Comments
 (0)