From 5a3db0505fb3a95ab925045b8d0e0813722ef683 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Thu, 11 Sep 2014 16:00:59 +0200 Subject: [PATCH] Small fix to elasticsearch save error handling --- src/app/services/elasticsearch/es-datasource.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'; }); } };