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

fix(export): better error handling

Torkel Ödegaard 9 лет назад
Родитель
Сommit
6a813aa33d
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      public/app/features/dashboard/export/exporter.ts

+ 3 - 1
public/app/features/dashboard/export/exporter.ts

@@ -105,7 +105,9 @@ export class DashboardExporter {
       return newObj;
     }).catch(err => {
       console.log('Export failed:', err);
-      return {};
+      return {
+        error: err
+      };
     });
   }