Skip to content

Commit

Permalink
better property assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonkneen committed Apr 21, 2017
1 parent 9eb0221 commit 19f7a36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reste.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ var main = function() {

if (config.errorsAsObjects) {
error = e;
error['content'] = parseJSON(http.responseText);
error.content = parseJSON(http.responseText);
warn("RESTE:: Errors will be returned as objects.");
} else {
error = parseJSON(http.responseText);
Expand Down

0 comments on commit 19f7a36

Please sign in to comment.