Commit 10339090 by Torkel Ödegaard

fix(annotations): fixed annotation error handling, fixes #5077

parent b6dcf6bd
...@@ -55,10 +55,11 @@ define([ ...@@ -55,10 +55,11 @@ define([
}, this); }, this);
}); });
promiseCached = $q.all(promises) promiseCached = $q.all(promises).then(function() {
.then(function() { return list;
return list; }).catch(function(err) {
}); $rootScope.appEvent('alert-error', ['Annotations failed', (err.message || err)]);
});
return promiseCached; return promiseCached;
}; };
......
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