From 6a813aa33d85586b0493f274f09a1ab601a0ef82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torkel=20=C3=96degaard?= Date: Fri, 20 May 2016 14:45:22 +0200 Subject: [PATCH] fix(export): better error handling --- public/app/features/dashboard/export/exporter.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/app/features/dashboard/export/exporter.ts b/public/app/features/dashboard/export/exporter.ts index 065bfa15a59..c50e252efff 100644 --- a/public/app/features/dashboard/export/exporter.ts +++ b/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 + }; }); }