Commit 3991d9dc by Torkel Ödegaard

Added error handling to dashboard imports, #1493

parent 60ae4afe
......@@ -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]);
});
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment