Skip to content

Commit

Permalink
ANSA-350 Refactor: log promise error (i.e. do not return it)
Browse files Browse the repository at this point in the history
Note: removing the entire catch bloc causes an 'Uncaught (in promise)' error to be thrown in the console (even if the error is handled further up in Promise.all().catch; see: petkaantonov/bluebird#493 ).
  • Loading branch information
tmvumbi2 committed Oct 23, 2017
1 parent c2a4892 commit 5747263
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/controls/mdfbChips.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ module.exports = function ($timeout) {
scope.form[field].$setUntouched()
scope.form[field].$setPristine()
}).catch(function (err) {
return err
console.log(err)
})

return promise
Expand Down

0 comments on commit 5747263

Please sign in to comment.