diff --git a/dashboard-ui/bower_components/emby-apiclient/.bower.json b/dashboard-ui/bower_components/emby-apiclient/.bower.json index 39753713ac..01fedd3c13 100644 --- a/dashboard-ui/bower_components/emby-apiclient/.bower.json +++ b/dashboard-ui/bower_components/emby-apiclient/.bower.json @@ -16,12 +16,12 @@ }, "devDependencies": {}, "ignore": [], - "version": "1.1.104", - "_release": "1.1.104", + "version": "1.1.105", + "_release": "1.1.105", "_resolution": { "type": "version", - "tag": "1.1.104", - "commit": "61e924b71080aa117e48dc26323489895ffd62d1" + "tag": "1.1.105", + "commit": "d46515271d43d1b0f7dd19bb1834cfd457fb3326" }, "_source": "https://github.com/MediaBrowser/Emby.ApiClient.Javascript.git", "_target": "^1.1.51", diff --git a/dashboard-ui/bower_components/emby-apiclient/apiclient.js b/dashboard-ui/bower_components/emby-apiclient/apiclient.js index b2d5df08d6..95980106ca 100644 --- a/dashboard-ui/bower_components/emby-apiclient/apiclient.js +++ b/dashboard-ui/bower_components/emby-apiclient/apiclient.js @@ -266,7 +266,7 @@ resolve(response); }, function (error) { clearTimeout(timeout); - reject(); + reject(error); }); }); } @@ -448,11 +448,14 @@ }, function (error) { - console.log("Request failed to " + request.url); - - // http://api.jquery.com/jQuery.ajax/ - if (enableReconnection) { + if (error) { + console.log("Request failed to " + request.url + ' ' + error.toString()); + } else { + console.log("Request timed out to " + request.url + ' ' + error.toString()); + } + // http://api.jquery.com/jQuery.ajax/ + if (!error && enableReconnection) { console.log("Attempting reconnection"); var previousServerAddress = self.serverAddress();