From 8a5097a39fdab5d3c64dc457930795388461b0dd Mon Sep 17 00:00:00 2001 From: Ruan23 Date: Thu, 8 Sep 2022 14:49:14 +1200 Subject: [PATCH] Fixed incorrect error logging When passing 'error', only the string 'error' gets logged and makes debugging impossible. Passing the actual error object provides proper logs that can be debugged. --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 7559280..5739b83 100755 --- a/index.js +++ b/index.js @@ -61,7 +61,7 @@ function gulpWPpot (options) { this.push(potFile); done(); } catch (error) { - done('error', new PluginError('gulp-wp-pot', error)); + done(error, new PluginError('gulp-wp-pot', error)); } } });