Fix more error plumbing.

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3979 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
Cory McWilliams 2022-09-11 01:56:29 +00:00
parent fe33903e2e
commit 26691051a5

View File

@ -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);
}