From e19b1d00d052ced9703417fdec8a298f4ad1111b Mon Sep 17 00:00:00 2001 From: David Nguyen Date: Fri, 1 May 2026 14:24:42 +1000 Subject: [PATCH] fix: improve embed error messages (#2752) --- .../app/components/embed/embed-paywall.tsx | 22 +++++++++++++++++-- .../create-embedding-presign-token.ts | 3 ++- 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/apps/remix/app/components/embed/embed-paywall.tsx b/apps/remix/app/components/embed/embed-paywall.tsx index aa3af647f..c94a27860 100644 --- a/apps/remix/app/components/embed/embed-paywall.tsx +++ b/apps/remix/app/components/embed/embed-paywall.tsx @@ -1,7 +1,25 @@ +import { Trans } from '@lingui/react/macro'; +import { Link } from 'react-router'; + +import { SUPPORT_EMAIL } from '@documenso/lib/constants/app'; + export const EmbedPaywall = () => { return ( -
-

Paywall

+
+
+

+ This feature is not available on your current plan +

+

+ + Please contact{' '} + + support + {' '} + if you have any questions. + +

+
); }; diff --git a/packages/trpc/server/embedding-router/create-embedding-presign-token.ts b/packages/trpc/server/embedding-router/create-embedding-presign-token.ts index 05b6ce11f..a252c8a48 100644 --- a/packages/trpc/server/embedding-router/create-embedding-presign-token.ts +++ b/packages/trpc/server/embedding-router/create-embedding-presign-token.ts @@ -46,7 +46,8 @@ export const createEmbeddingPresignTokenRoute = procedure if (!organisationClaim.flags.embedAuthoring) { throw new AppError(AppErrorCode.UNAUTHORIZED, { - message: 'You do not have permission to create embedding presign tokens', + message: + 'Embedded Authoring is not included in your current plan. Please contact support.', }); } }