mirror of
https://github.com/grafana/grafana.git
synced 2024-11-26 02:40:26 -06:00
Added error handling to dashboard imports, #1493
This commit is contained in:
parent
60ae4afe87
commit
3991d9dc06
@ -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]);
|
||||
});
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user