Check in case returned error is a string. Ref GH-52.
This commit is contained in:
parent
165df7827b
commit
9396cb4e33
@ -97,7 +97,10 @@ module.exports = function(grunt) {
|
||||
});
|
||||
|
||||
// On watcher error
|
||||
this.on('error', function(err) { grunt.log.error(err); });
|
||||
this.on('error', function(err) {
|
||||
if (typeof err === 'string') { err = new Error(err); }
|
||||
grunt.log.error(err.message);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user