Skip to content

Commit 208a8fa

Browse files
committed
chore(rivetkit): make action cancelled error more descriptive
1 parent 4f58c50 commit 208a8fa

File tree

2 files changed

+2
-2
lines changed
  • engine/packages/pegboard-gateway/src
  • rivetkit-typescript/packages/rivetkit/src/client

2 files changed

+2
-2
lines changed

engine/packages/pegboard-gateway/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -654,7 +654,7 @@ impl PegboardGateway {
654654

655655
match &hibernation_res {
656656
HibernationResult::Continue => {
657-
tracing::debug!("received message during hibernation");
657+
tracing::debug!("received websocket message during hibernation");
658658
}
659659
HibernationResult::Close => {
660660
tracing::debug!("websocket stream closed during hibernation");

rivetkit-typescript/packages/rivetkit/src/client/actor-conn.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ enc
531531
});
532532

533533
const disconnectError = new Error(
534-
wasClean ? "Connection closed" : "Connection lost",
534+
`${wasClean ? "Connection closed" : "Connection lost"} (code: ${closeEvent.code}, reason: ${closeEvent.reason})`,
535535
);
536536

537537
for (const actionInfo of this.#actionsInFlight.values()) {

0 commit comments

Comments
 (0)