فهرست منبع

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