Просмотр исходного кода

Small fix to elasticsearch save error handling

Torkel Ödegaard 11 лет назад
Родитель
Сommit
5a3db0505f
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      src/app/services/elasticsearch/es-datasource.js

+ 2 - 2
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';
           });
       }
     };