#706 - Error handling

This commit is contained in:
Elio Struyf
2023-11-13 17:57:45 +01:00
parent 8684f32d98
commit 07db685666
3 changed files with 7 additions and 2 deletions
+2 -1
View File
@@ -204,7 +204,7 @@ export class CustomScript {
return;
} catch (e) {
Notifications.error(`${script.title}: ${(e as Error).message}`);
Notifications.errorWithOutput(`${script.title} -`);
return;
}
}
@@ -434,6 +434,7 @@ export class CustomScript {
return new Promise(async (resolve, reject) => {
exec(fullScript, { cwd: wsPath }, (error, stdout) => {
if (error) {
Logger.error(error.message);
reject(error.message);
return;
}