From 26691051a5f4fa713a6ed5c2b7b1ddf02dd7ebfa Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Sun, 11 Sep 2022 01:56:29 +0000 Subject: [PATCH] Fix more error plumbing. git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3979 ed5197a5-7fde-0310-b194-c3ffbd925b24 --- core/core.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/core.js b/core/core.js index ce83dd8f..3dee1102 100644 --- a/core/core.js +++ b/core/core.js @@ -369,8 +369,8 @@ async function getProcessBlob(blobId, key, options) { } await process.task.execute({name: appSourceName, source: appSource}); } catch (error) { - if (process.app) { - process.app.send({action: 'error', error: error}); + if (process?.task?.onError) { + process.task.onError(error); } else { printError({print: print}, error); }