Skip to content

Commit

Permalink
fix(middleware): fix WARN log when passing undefined error handler to…
Browse files Browse the repository at this point in the history
… promise.then

Closes karma-runner#2227
  • Loading branch information
shaharmor committed Jul 15, 2016
1 parent 1e526e3 commit 20b87de
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/middleware/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ var PromiseContainer = function () {
var promise

this.then = function (success, error) {
error = error || _.noop
return promise.then(success).catch(error)
}

Expand Down

0 comments on commit 20b87de

Please sign in to comment.