diff --git a/src/worker/session-control-do.ts b/src/worker/session-control-do.ts index 03cf5d3..c5fd760 100644 --- a/src/worker/session-control-do.ts +++ b/src/worker/session-control-do.ts @@ -213,11 +213,8 @@ export class SessionControlDO extends DurableObject { ); return checkpoint ? json({ checkpoint }) : json({ error: "not found" }, { status: 404 }); } - } catch (error) { - return json( - { error: error instanceof Error ? error.message : String(error) }, - { status: 500 }, - ); + } catch { + return json({ error: "internal error" }, { status: 500 }); } return json({ error: "not found" }, { status: 404 }); }