mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
fix(annotations): fixed annotation error handling, fixes #5077
This commit is contained in:
parent
b6dcf6bd02
commit
10339090b8
@ -55,10 +55,11 @@ define([
|
||||
}, this);
|
||||
});
|
||||
|
||||
promiseCached = $q.all(promises)
|
||||
.then(function() {
|
||||
return list;
|
||||
});
|
||||
promiseCached = $q.all(promises).then(function() {
|
||||
return list;
|
||||
}).catch(function(err) {
|
||||
$rootScope.appEvent('alert-error', ['Annotations failed', (err.message || err)]);
|
||||
});
|
||||
|
||||
return promiseCached;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user