1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-27 03:57:21 +00:00

HTTP Requests should return data even if there was an error

The body data is often used for API error messages in the event of failure
This commit is contained in:
Jeremy Ruston 2024-01-26 13:37:46 +00:00
parent a9f9ffd409
commit 9bf3c0602d

View File

@ -289,7 +289,7 @@ exports.httpRequest = function(options) {
return; return;
} }
// Something went wrong // Something went wrong
options.callback($tw.language.getString("Error/XMLHttpRequest") + ": " + this.status,null,this); options.callback($tw.language.getString("Error/XMLHttpRequest") + ": " + this.status,this[returnProp],this);
} }
}; };
// Handle progress // Handle progress