angular/angular.js — pull request #3476 by bolasblack (2013-08-06 09:53:14+00:00)
Title: feat($q): add shorthand for defining promise success or error handlers

Now we can instead this

promise.then(null, errorHandler)

like this

promise.fail(errorhandler)

Closes #2048