Преглед изворни кода

fix(export): better error handling

Torkel Ödegaard пре 9 година
родитељ
комит
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
+      };
     });
   }