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)); } } });