Skip to content

Commit

Permalink
code clean up
Browse files Browse the repository at this point in the history
jasonkneen committed Apr 12, 2017
1 parent 64d2237 commit 873e655
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions reste.js
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@ var main = function() {

// generic log handler in DEV mode
function warn(message) {
console.warn(message);
console.warn(message);
}

// sets up the config, headers, adds methods
@@ -160,7 +160,7 @@ var main = function() {

var error;

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

0 comments on commit 873e655

Please sign in to comment.