dashboardprocy console.log for throw correction

This commit is contained in:
Dante
2015-03-30 16:42:56 -04:00
parent cdfcb13a04
commit 21e0f0089d

View File

@@ -442,7 +442,7 @@ DashboardProxy.prototype.getJson = function (endPoint, callBack) {
datatype: 'json',
success: function(response) { callBack(response); },
error: function(jqXHR, textStatus, errorThrown) {
console.log(textStatus, errorThrown);
throw new Error(textStatus);
},
beforeSend: function (xhr) {
xhr.setRequestHeader('Authorization', 'Bearer ' + that.oauthToken);