mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 11:22:15 +00:00
fix: Fix issue with some errors not being handled correctly (no-changelog) (#10371)
This commit is contained in:
@@ -167,7 +167,7 @@ export abstract class NodeError extends ExecutionBaseError {
|
||||
}
|
||||
|
||||
// if code is provided and it is in the list of common errors set the message and return early
|
||||
if (code && COMMON_ERRORS[code.toUpperCase()]) {
|
||||
if (code && typeof code === 'string' && COMMON_ERRORS[code.toUpperCase()]) {
|
||||
newMessage = COMMON_ERRORS[code] as string;
|
||||
messages.push(message);
|
||||
return [newMessage, messages];
|
||||
|
||||
Reference in New Issue
Block a user