Skip to content

Commit

Permalink
Update packages/workflow/src/errors/abstract/node.error.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Shireen Missi <[email protected]>
  • Loading branch information
Joffcom and ShireenMissi authored Aug 13, 2024
1 parent 345538c commit dd48c27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/workflow/src/errors/abstract/node.error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 && typeof code !== 'number' && 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];
Expand Down

0 comments on commit dd48c27

Please sign in to comment.