Small fix to elasticsearch save error handling

This commit is contained in:
Torkel Ödegaard
2014-09-11 16:00:59 +02:00
parent 6ca73f6df0
commit 5a3db0505f
@@ -170,8 +170,8 @@ function (angular, _, config, kbn, moment) {
.then(function(results) {
self._removeUnslugifiedDashboard(results, title);
return { title: title, url: '/dashboard/db/' + id };
}, function(err) {
throw 'Failed to save to elasticsearch ' + err.data;
}, function() {
throw 'Failed to save to elasticsearch';
});
}
};