Skip to content

Instantly share code, notes, and snippets.

@NickHeiner
Created February 19, 2015 23:37
Show Gist options
  • Select an option

  • Save NickHeiner/9696ef04c5513b9d9b6a to your computer and use it in GitHub Desktop.

Select an option

Save NickHeiner/9696ef04c5513b9d9b6a to your computer and use it in GitHub Desktop.
Bad error handling
'use strict';
module.exports = function(grunt) {
grunt.initConfig({});
grunt.registerTask('this-will-fail', function() {
var done = this.async();
setTimeout(function() {
done('An error has occurred.');
}, 500);
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment