Skip to content

Commit 343ae8d

Browse files
committed
Don't capture email render errors
1 parent 7fc5334 commit 343ae8d

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

  • apps/backend/src/app/api/latest/emails/render-email

apps/backend/src/app/api/latest/emails/render-email/route.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { getEmailThemeForTemplate, renderEmailWithTemplate } from "@/lib/email-r
22
import { createSmartRouteHandler } from "@/route-handlers/smart-route-handler";
33
import { KnownErrors } from "@stackframe/stack-shared/dist/known-errors";
44
import { adaptSchema, templateThemeIdSchema, yupNumber, yupObject, yupString } from "@stackframe/stack-shared/dist/schema-fields";
5-
import { captureError, StackAssertionError, StatusError } from "@stackframe/stack-shared/dist/utils/errors";
5+
import { StatusError } from "@stackframe/stack-shared/dist/utils/errors";
66

77
export const POST = createSmartRouteHandler({
88
metadata: {
@@ -57,7 +57,6 @@ export const POST = createSmartRouteHandler({
5757
},
5858
);
5959
if ("error" in result) {
60-
captureError('render-email', new StackAssertionError("Error rendering email with theme", { result }));
6160
throw new KnownErrors.EmailRenderingError(result.error);
6261
}
6362
return {

0 commit comments

Comments
 (0)