Skip to content

Commit

Permalink
Fixed issue with obsolute gulp-util. Closes #33
Browse files Browse the repository at this point in the history
  • Loading branch information
s-KaiNet committed Jun 26, 2018
1 parent 4249b6e commit ed124cb
Show file tree
Hide file tree
Showing 3 changed files with 1,540 additions and 1,046 deletions.
11 changes: 5 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
var spsave = require('spsave').spsave,
gutil = require('gulp-util'),
PluginError = gutil.PluginError,
PluginError = require('plugin-error'),
path = require("path"),
through = require("through2"),
_ = require('lodash'),
Expand Down Expand Up @@ -28,7 +27,7 @@ function gulpspsave(coreOptions, creds) {
}

if (file.isStream()) {
cb(new gutil.PluginError(PLUGIN_NAME, 'Streaming not supported'));
cb(new PluginError(PLUGIN_NAME, 'Streaming not supported'));
return;
}

Expand Down Expand Up @@ -57,7 +56,7 @@ function gulpspsave(coreOptions, creds) {
icon: path.join(__dirname, 'assets/sp_error.png')
});
}
cb(new gutil.PluginError(PLUGIN_NAME, err));
cb(new PluginError(PLUGIN_NAME, err, { showStack: true }));
return;
});
}
Expand All @@ -71,7 +70,7 @@ function gulpspsave(coreOptions, creds) {
icon: path.join(__dirname, 'assets/sp.png')
}, function (err) {
if (err) {
cb(new gutil.PluginError(PLUGIN_NAME, err));
cb(new PluginError(PLUGIN_NAME, err, { showStack: true }));
return;
}

Expand All @@ -84,7 +83,7 @@ function gulpspsave(coreOptions, creds) {
try {
showNotification();
} catch (err) {
cb(new gutil.PluginError(PLUGIN_NAME, err));
cb(new PluginError(PLUGIN_NAME, err, { showStack: true }));
}
} else {
cb();
Expand Down

0 comments on commit ed124cb

Please sign in to comment.