Skip to content

Open-source document signature platform. Not affiliated with DocuSign.

TypeScript

Log a reminder that fails while others in its step go out

Claude8fe68788cd17
diff --git a/src/lib/reminders.ts b/src/lib/reminders.ts
index c76037c..8f8d5dc 100644
--- a/src/lib/reminders.ts
+++ b/src/lib/reminders.ts
@@ -719,7 +719,12 @@ export async function sendManualEnvelopeNudge(
await deliverReminder(persisted, "manual", database, service);
reminded.push(persisted);
} catch (error) {
- // Put back as it was by deliverReminder. The others still go.
+ // Put back as it was by deliverReminder. The others still go, and
+ // the sender is told only who was reminded, so this one is logged.
+ console.error(
+ `Failed to send the reminder for envelope ${envelopeId} to signer ${persisted.signerId}:`,
+ error,
+ );
deliveryError ??= error;
}
}