Added error handling to dashboard imports, #1493

This commit is contained in:
Torkel Ödegaard 2015-02-18 14:18:54 +01:00
parent 60ae4afe87
commit 3991d9dc06

View File

@ -43,6 +43,10 @@ function (angular, _) {
$scope.importing = true;
$scope.imported = [];
$scope.next();
}, function(err) {
var resp = err.message || err.statusText || 'Unknown error';
var message = "Failed to load dashboards from selected data source, response from server was: " + resp;
$scope.appEvent('alert-error', ['Import failed', message]);
});
};