mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 04:04:06 -08:00
fix(core): Fix url in error handelling for the error Trigger (#5201)
* Add workflow id to url in error message * fix mock message for manual execution * Fix url missing 's'
This commit is contained in:
parent
537816a336
commit
6e391755e4
|
@ -88,7 +88,9 @@ export function executeErrorWorkflow(
|
||||||
|
|
||||||
let pastExecutionUrl: string | undefined;
|
let pastExecutionUrl: string | undefined;
|
||||||
if (executionId !== undefined) {
|
if (executionId !== undefined) {
|
||||||
pastExecutionUrl = `${WebhookHelpers.getWebhookBaseUrl()}execution/${executionId}`;
|
pastExecutionUrl = `${WebhookHelpers.getWebhookBaseUrl()}workflow/${
|
||||||
|
workflowData.id
|
||||||
|
}/executions/${executionId}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fullRunData.data.resultData.error !== undefined) {
|
if (fullRunData.data.resultData.error !== undefined) {
|
||||||
|
|
|
@ -54,7 +54,7 @@ export class ErrorTrigger implements INodeType {
|
||||||
items[0].json = {
|
items[0].json = {
|
||||||
execution: {
|
execution: {
|
||||||
id,
|
id,
|
||||||
url: `${urlParts.join('/')}/${id}`,
|
url: `${urlParts.join('/')}/workflow/1/${id}`,
|
||||||
retryOf: '34',
|
retryOf: '34',
|
||||||
error: {
|
error: {
|
||||||
message: 'Example Error Message',
|
message: 'Example Error Message',
|
||||||
|
|
Loading…
Reference in a new issue