Skip to content

Commit

Permalink
commenting
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonkneen committed Apr 21, 2017
1 parent 19f7a36 commit 485eb3c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions reste.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,9 +169,11 @@ var main = function() {
warn("RESTE:: Future versions of RESTe will return errors as objects. Use config.errorsAsObjects = true to support this now and update your apps!");
}

// if local error, handle it
if (onError) {
onError(error, retry);
} else if (config.onError) {
// otherwise go to global handler
config.onError(error, retry);
} else if (onLoad) {
// otherwise revert to the onLoad callback
Expand Down

0 comments on commit 485eb3c

Please sign in to comment.