Created
February 19, 2015 23:37
-
-
Save NickHeiner/9696ef04c5513b9d9b6a to your computer and use it in GitHub Desktop.
Bad error handling
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| '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