We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d33b40a commit ee4e856Copy full SHA for ee4e856
1 file changed
index.js
@@ -11,7 +11,6 @@
11
12
// Nodejs libs.
13
var spawn = require('child_process').spawn;
14
-var nodeUtil = require('util');
15
var path = require('path');
16
17
// The module to be exported.
@@ -52,7 +51,7 @@ util.callbackify = function(fn) {
52
51
// Create a new Error object, with an origError property that will be dumped
53
// if grunt was run with the --debug=9 option.
54
util.error = function(err, origError) {
55
- if (!nodeUtil.isError(err)) { err = new Error(err); }
+ if (!(err instanceof Error)) { err = new Error(err); }
56
if (origError) { err.origError = origError; }
57
return err;
58
};
0 commit comments