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:
parent
a9f9ffd409
commit
9bf3c0602d
@ -289,7 +289,7 @@ exports.httpRequest = function(options) {
|
||||
return;
|
||||
}
|
||||
// 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
|
||||
|
Loading…
Reference in New Issue
Block a user