mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
fix(core): Ensure error.message is a string before checking for specific messages (#17417)
This commit is contained in:
@@ -458,7 +458,13 @@ export function generateNodesGraph(
|
||||
}
|
||||
}
|
||||
} catch (e: unknown) {
|
||||
if (!(e instanceof Error && e.message.includes('Unrecognized node type'))) {
|
||||
if (
|
||||
!(
|
||||
e instanceof Error &&
|
||||
typeof e.message === 'string' &&
|
||||
e.message.includes('Unrecognized node type')
|
||||
)
|
||||
) {
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user