From 80cba036e9a0136e004de243651f708a535c6003 Mon Sep 17 00:00:00 2001 From: azu Date: Sun, 22 May 2016 14:07:32 +0900 Subject: [PATCH] feat(gulp): improve error message include error messsage when occur error --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); });