Skip to content

Commit 96217c9

Browse files
committed
Fix tiny error logging bug in client reconnection
1 parent 0e4779c commit 96217c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client/admin-client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ export class AdminClient<Plugins extends { [key: string]: AdminPlugin<any, any>
317317
}
318318

319319
// Otherwise, once retries have failed, we give up entirely:
320-
console.warn('Admin client stream reconnection failed, shutting down:', err.message);
320+
console.warn('Admin client stream reconnection failed, shutting down:', err.message ?? err);
321321
if (this.debug) console.warn(err);
322322
this.emit('stream-reconnect-failed', err);
323323
targetStream.emit('server-shutdown');

0 commit comments

Comments
 (0)