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

This commit is contained in:
Torkel Ödegaard 2016-05-18 15:22:40 +02:00
parent b6dcf6bd02
commit 10339090b8

View File

@ -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;
};