mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-11 12:57:29 -08:00
fix(editor): Show execution error as message (#6431)
show execution error as message
This commit is contained in:
parent
1fe6459569
commit
d3b78e291e
|
@ -864,6 +864,7 @@
|
|||
"nodeView.runButtonText.executeWorkflow": "Execute Workflow",
|
||||
"nodeView.runButtonText.executingWorkflow": "Executing Workflow",
|
||||
"nodeView.runButtonText.waitingForTriggerEvent": "Waiting for Trigger Event",
|
||||
"nodeView.showError.workflowError": "Workflow execution finished with an error",
|
||||
"nodeView.showError.getWorkflowDataFromUrl.title": "Problem loading workflow",
|
||||
"nodeView.showError.importWorkflowData.title": "Problem importing workflow",
|
||||
"nodeView.showError.mounted1.message": "There was a problem loading init data",
|
||||
|
|
|
@ -776,9 +776,14 @@ export default defineComponent({
|
|||
|
||||
if (!nodeErrorFound && data.data.resultData.error.stack) {
|
||||
// Display some more information for now in console to make debugging easier
|
||||
// TODO: Improve this in the future by displaying in UI
|
||||
console.error(`Execution ${executionId} error:`); // eslint-disable-line no-console
|
||||
console.error(data.data.resultData.error.stack); // eslint-disable-line no-console
|
||||
this.showMessage({
|
||||
title: this.$locale.baseText('nodeView.showError.workflowError'),
|
||||
message: data.data.resultData.error.message,
|
||||
type: 'error',
|
||||
duration: 0,
|
||||
});
|
||||
}
|
||||
}
|
||||
if ((data as IExecutionsSummary).waitTill) {
|
||||
|
|
Loading…
Reference in a new issue