diff --git a/tasks/watch.js b/tasks/watch.js index 25e6e4a..fb909bb 100644 --- a/tasks/watch.js +++ b/tasks/watch.js @@ -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); + }); }); });