Skip to content

Commit

Permalink
Log response text when Wonderwall refresh fails
Browse files Browse the repository at this point in the history
  • Loading branch information
eriksson-daniel committed Oct 9, 2024
1 parent 1c1d89c commit 40ebfee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/src/plugins/crdt/collaboration-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ const startRefreshOboTokenInterval = (context: ConnectionContext, immediate = fa
});

if (!res.ok) {
throw new Error(`Wonderwall responded with status code ${res.status}`);
const text = await res.text();
throw new Error(`Wonderwall responded with status code ${res.status}: ${text}`);
}

const parsed = await res.json();
Expand Down

0 comments on commit 40ebfee

Please sign in to comment.