From 19f7a36aeb06f7a47d290bb58c42f05e2c69e022 Mon Sep 17 00:00:00 2001 From: jasonkneen Date: Fri, 21 Apr 2017 16:10:40 +0100 Subject: [PATCH] better property assignment --- reste.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reste.js b/reste.js index b90b555..9923c20 100644 --- a/reste.js +++ b/reste.js @@ -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);