diff --git a/packages/nodes-base/nodes/Notion/shared/GenericFunctions.ts b/packages/nodes-base/nodes/Notion/shared/GenericFunctions.ts index 14261136fa3..4608dd63093 100644 --- a/packages/nodes-base/nodes/Notion/shared/GenericFunctions.ts +++ b/packages/nodes-base/nodes/Notion/shared/GenericFunctions.ts @@ -24,7 +24,7 @@ import { NodeOperationError, safeInternalRegex, setSafeObjectProperty, - UnexpectedError, + UserError, } from 'n8n-workflow'; import { validate as uuidValidate } from 'uuid'; @@ -1123,7 +1123,7 @@ export function extractDatabaseMentionRLC(blockValues: IDataObject[]) { const extracted = safeInternalRegex.exec(txt.database.__regex, txt.database.value); const databaseId = extracted?.[1]; if (databaseId === undefined) { - throw new UnexpectedError( + throw new UserError( `Could not extract the database ID from "${txt.database.value}"`, ); }