1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-06 06:07:37 +02:00

Show correct method in asyncRequest

This commit is contained in:
Uwe L. Korn
2014-03-12 22:58:30 +00:00
parent 1ae88f6e04
commit f773653c3f

View File

@@ -301,7 +301,7 @@ Tomahawk.asyncRequest = function (url, callback, extraHeaders, options) {
if (xmlHttpRequest.readyState == 4 && xmlHttpRequest.status == 200) {
callback.call(window, xmlHttpRequest);
} else if (xmlHttpRequest.readyState === 4) {
Tomahawk.log("Failed to do GET request: to: " + url);
Tomahawk.log("Failed to do " + method + " request: to: " + url);
Tomahawk.log("Status Code was: " + xmlHttpRequest.status);
if (opt.hasOwnProperty('errorHandler')) {
opt.errorHandler.call(window, xmlHttpRequest);