Currently jDrupal returns only the statusText value from the XMLHttpRequest, but that doesn't allow me to use responseText or any other info from the request itself. This PR changes the promise rejection to return the entire response, which then developers can react on.
Currently jDrupal returns only the
statusText
value from the XMLHttpRequest, but that doesn't allow me to useresponseText
or any other info from the request itself. This PR changes the promise rejection to return the entire response, which then developers can react on.Related to this issue: https://github.com/signalpoint/jDrupal/issues/72