diff --git a/src/app/services/elasticsearch/es-datasource.js b/src/app/services/elasticsearch/es-datasource.js index 4d1f6272720..80e3c5d0100 100644 --- a/src/app/services/elasticsearch/es-datasource.js +++ b/src/app/services/elasticsearch/es-datasource.js @@ -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'; }); } };