diff --git a/platform/features/timeline/bundle.js b/platform/features/timeline/bundle.js index e44b27c589..4663a37fae 100644 --- a/platform/features/timeline/bundle.js +++ b/platform/features/timeline/bundle.js @@ -92,6 +92,7 @@ define([ "category": "contextual", "implementation": ExportTimelineAsCSVAction, "depends": [ + "$log", "exportService", "notificationService", "resources[]" diff --git a/platform/features/timeline/src/actions/ExportTimelineAsCSVAction.js b/platform/features/timeline/src/actions/ExportTimelineAsCSVAction.js index 57ac17c8a0..5b0e007e23 100644 --- a/platform/features/timeline/src/actions/ExportTimelineAsCSVAction.js +++ b/platform/features/timeline/src/actions/ExportTimelineAsCSVAction.js @@ -34,11 +34,13 @@ define(["./ExportTimelineAsCSVTask"], function (ExportTimelineAsCSVTask) { * @memberof {platform/features/timeline} */ function ExportTimelineAsCSVAction( + $log, exportService, notificationService, resources, context ) { + this.$log = $log; this.task = new ExportTimelineAsCSVTask( exportService, resources, @@ -52,13 +54,15 @@ define(["./ExportTimelineAsCSVTask"], function (ExportTimelineAsCSVTask) { notification = notificationService.notify({ title: "Exporting CSV", unknownProgress: true - }); + }), + $log = this.$log; return this.task.run() .then(function () { notification.dismiss(); }) - .catch(function () { + .catch(function (err) { + $log.warn(err); notification.dismiss(); notificationService.error("Error exporting CSV"); });