From f773653c3f9f43d7fecc7c40097f4ac97972e7e3 Mon Sep 17 00:00:00 2001 From: "Uwe L. Korn" Date: Wed, 12 Mar 2014 22:58:30 +0000 Subject: [PATCH] Show correct method in asyncRequest --- data/js/tomahawk.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/js/tomahawk.js b/data/js/tomahawk.js index 730a95a85..c7c1b3210 100644 --- a/data/js/tomahawk.js +++ b/data/js/tomahawk.js @@ -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);