From ee58bf3d5c4c40ec9dee1df0b353fc3ec9195dae Mon Sep 17 00:00:00 2001 From: zadam Date: Thu, 7 Mar 2019 20:51:55 +0100 Subject: [PATCH] fix bundle execution error handling --- src/public/javascripts/services/bundle.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/public/javascripts/services/bundle.js b/src/public/javascripts/services/bundle.js index 4d67496ba..1548a1e0f 100644 --- a/src/public/javascripts/services/bundle.js +++ b/src/public/javascripts/services/bundle.js @@ -9,6 +9,8 @@ async function getAndExecuteBundle(noteId, originEntity = null) { } async function executeBundle(bundle, originEntity) { + console.log(bundle); + const apiContext = await ScriptContext(bundle.noteId, bundle.allNoteIds, originEntity); try { @@ -17,7 +19,7 @@ async function executeBundle(bundle, originEntity) { }.call(apiContext)); } catch (e) { - infoService.showAndLogError(`Execution of script "${bundle.note.title}" (${bundle.note.noteId}) failed with error: ${e.message}`); + infoService.showAndLogError(`Execution of ${bundle.noteId} failed with error: ${e.message}`); } }