Check in case returned error is a string. Ref GH-52.

pull/63/merge
Kyle Robinson Young 12 years ago
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…
Cancel
Save