diff --git a/index.js b/index.js index 6a02729..9b68306 100644 --- a/index.js +++ b/index.js @@ -19,7 +19,7 @@ module.exports = function(options) { that.emit('error', new gutil.PluginError('textlint','Lint failed.')); } }).catch(function(error){ - that.emit('error', new gutil.PluginError('textlint', 'Lint failed.')) + that.emit('error', new gutil.PluginError('textlint', 'textlint', 'Lint failed. \n' + error.message)) }).then(function() { cb(); });