We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e526e3 commit 20b87deCopy full SHA for 20b87de
1 file changed
lib/middleware/common.js
@@ -11,6 +11,7 @@ var PromiseContainer = function () {
11
var promise
12
13
this.then = function (success, error) {
14
+ error = error || _.noop
15
return promise.then(success).catch(error)
16
}
17
0 commit comments