fix(editor): Improve sub-workflow debugging for more node error types (#14347)

This commit is contained in:
Charlie Kolb
2025-04-04 08:33:29 +02:00
committed by GitHub
parent 7cef314535
commit 9104743a5f
3 changed files with 41 additions and 18 deletions

View File

@@ -27,5 +27,8 @@ export function parseErrorMetadata(error: unknown): ISubWorkflowMetadata | undef
if (hasKey(error, 'errorResponse')) {
return parseErrorResponseWorkflowMetadata(error.errorResponse);
}
return undefined;
// This accounts for cases where the backend attaches the properties on plain errors
// e.g. from custom nodes throwing literal `Error` or `ApplicationError` objects directly
return parseErrorResponseWorkflowMetadata(error);
}