diff --git a/dashboard-ui/scripts/site.js b/dashboard-ui/scripts/site.js index 5b41f2f9c..ee13ae440 100644 --- a/dashboard-ui/scripts/site.js +++ b/dashboard-ui/scripts/site.js @@ -455,6 +455,22 @@ var Dashboard = { }); }, + processErrorResponse: function (response) { + + Dashboard.hideLoadingMsg(); + + var status = '' + response.status; + + if (response.statusText) { + status = response.statusText; + } + + Dashboard.alert({ + title: status, + message: response.headers ? response.headers.get('X-Application-Error-Code') : null + }); + }, + alert: function (options) { if (typeof options == "string") {