From 9f51bff58c8bbfb6825288b46f654b02146f9271 Mon Sep 17 00:00:00 2001 From: Peter Stuifzand Date: Fri, 30 Oct 2020 23:42:29 +0100 Subject: [PATCH] Error while saving message --- editor/src/editor.js | 3 +++ list-editor/util.js | 0 2 files changed, 3 insertions(+) create mode 100644 list-editor/util.js diff --git a/editor/src/editor.js b/editor/src/editor.js index 569b215..94126d7 100644 --- a/editor/src/editor.js +++ b/editor/src/editor.js @@ -78,6 +78,9 @@ function addIndicator(editor, indicator) { editor.save().then(() => { indicator.setText('saved!'); indicator.done(); + }).catch(() => { + console.log('error while saving') + indicator.done(); }) } } diff --git a/list-editor/util.js b/list-editor/util.js new file mode 100644 index 0000000..e69de29