gruntjs/grunt-contrib-requirejs — pull request #40 by brandonpapworth (2013-09-15 03:37:49+00:00)
Title: add extra option "fail" to provide a handler for when requirejs fails.

Adding a "fail" option to pass to the task will allow for a user to attach their own error handler to the task. requirejs.optimize() will then be passed this "fail" function as its 3rd argument. I like to use supplemental notification systems (i.e. node-osx-notifier) and something like this would prove helpful.