Explorar o código

Small fix to elasticsearch save error handling

Torkel Ödegaard %!s(int64=11) %!d(string=hai) anos
pai
achega
5a3db0505f
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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';
           });
       }
     };