From bd44aa4ff6c73f848f05365703716dd8f39d393c Mon Sep 17 00:00:00 2001 From: Nathan Flurry Date: Thu, 20 Nov 2025 10:24:05 -0800 Subject: [PATCH] chore(rivetkit): make action cancelled error more descriptive --- engine/packages/pegboard-gateway/src/lib.rs | 2 +- rivetkit-typescript/packages/rivetkit/src/client/actor-conn.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/packages/pegboard-gateway/src/lib.rs b/engine/packages/pegboard-gateway/src/lib.rs index cfcd1da971..a431c53dbe 100644 --- a/engine/packages/pegboard-gateway/src/lib.rs +++ b/engine/packages/pegboard-gateway/src/lib.rs @@ -669,7 +669,7 @@ impl PegboardGateway { match &hibernation_res { HibernationResult::Continue => { - tracing::debug!("received message during hibernation"); + tracing::debug!("received websocket message during hibernation"); } HibernationResult::Close => { tracing::debug!("websocket stream closed during hibernation"); diff --git a/rivetkit-typescript/packages/rivetkit/src/client/actor-conn.ts b/rivetkit-typescript/packages/rivetkit/src/client/actor-conn.ts index 91770e0cc5..132013c3e5 100644 --- a/rivetkit-typescript/packages/rivetkit/src/client/actor-conn.ts +++ b/rivetkit-typescript/packages/rivetkit/src/client/actor-conn.ts @@ -531,7 +531,7 @@ enc }); const disconnectError = new Error( - wasClean ? "Connection closed" : "Connection lost", + `${wasClean ? "Connection closed" : "Connection lost"} (code: ${closeEvent.code}, reason: ${closeEvent.reason})`, ); for (const actionInfo of this.#actionsInFlight.values()) {