Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

chore: add better logging to resend helper

Marc Seitza57ffb53951a
diff --git a/lib/resend.ts b/lib/resend.ts
index 9eba4e42..96fb50ae 100644
--- a/lib/resend.ts
+++ b/lib/resend.ts
@@ -44,6 +44,11 @@ export const sendEmail = async ({
// Check if the email sending operation returned an error and throw it
if (error) {
+ log({
+ message: `Resend returned error when sending email: ${error.name} \n\n ${error.message}`,
+ type: "error",
+ mention: true,
+ });
throw error;
}