From be33fc1c150e15f127189845cb1e54b78e9b4252 Mon Sep 17 00:00:00 2001 From: braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Mon, 12 Aug 2024 16:23:41 +0200 Subject: [PATCH] fix(system,errors): use handle id of matching handle type for errors --- packages/system/src/constants.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/system/src/constants.ts b/packages/system/src/constants.ts index 9f5c63a5..e108b761 100644 --- a/packages/system/src/constants.ts +++ b/packages/system/src/constants.ts @@ -16,7 +16,7 @@ export const errorMessages = { { id, sourceHandle, targetHandle }: { id: string; sourceHandle: string | null; targetHandle: string | null } ) => `Couldn't create edge for ${handleType} handle id: "${ - !sourceHandle ? sourceHandle : targetHandle + handleType === 'source' ? sourceHandle : targetHandle }", edge id: ${id}.`, error010: () => 'Handle: No node id found. Make sure to only use a Handle inside a custom Node.', error011: (edgeType: string) => `Edge type "${edgeType}" not found. Using fallback type "default".`,