diff --git a/lib/middleware/common.js b/lib/middleware/common.js index 179e8fe70..e4960f30c 100644 --- a/lib/middleware/common.js +++ b/lib/middleware/common.js @@ -11,6 +11,7 @@ var PromiseContainer = function () { var promise this.then = function (success, error) { + error = error || _.noop return promise.then(success).catch(error) }