Skip to content

Commit 825379a

Browse files
committed
fix Minecraft protocol client error: undefined message
1 parent 0359f20 commit 825379a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mineflayer/mc-protocol.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ customEvents.on('mineflayerBotCreated', () => {
3131
}
3232

3333
const onClientError = (err, data) => {
34-
const error = new MinecraftProtocolError(`Minecraft protocol client error: ${err.message}`, err, data)
34+
const error = new MinecraftProtocolError(`Minecraft protocol client error: ${String(err)}`, err, data)
3535
reportError(error)
3636
}
3737
if (typeof bot._client['_events'].error === 'function') {

0 commit comments

Comments
 (0)