Show activation error details for trigger nodes (#1787)

*  Implement error details in toast notification

*  Refactor error notification

*  Pipe activation error in prod mode to FE

*  Add node name to activation error details

*  Disable ignoring with ts-check

* 📝 fix spelling

Co-authored-by: Ben Hesseldieck <b.hesseldieck@gmail.com>
This commit is contained in:
Iván Ovejero
2021-06-12 17:06:56 +02:00
committed by GitHub
parent 6ade0a00f5
commit c0ec1ed606
4 changed files with 48 additions and 11 deletions

View File

@@ -313,7 +313,6 @@ export class ActiveWorkflowRunner {
try {
await Db.collections.Webhook?.insert(webhook);
const webhookExists = await workflow.runWebhookMethod('checkExists', webhookData, NodeExecuteFunctions, mode, activation, false);
if (webhookExists !== true) {
// If webhook does not exist yet create it
@@ -341,7 +340,7 @@ export class ActiveWorkflowRunner {
errorMessage = error.message;
}
throw new Error(errorMessage);
throw error;
}
}
// Save static data!