Skip to content

Commit c9cf363

Browse files
authored
Add npm update to version error message
1 parent 1d7c2a8 commit c9cf363

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client/autoVersion.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ module.exports = function (client, options) {
2929
.sort(function (a, b) { return b.version - a.version })
3030
const versions = (minecraftData.postNettyVersionsByProtocolVersion.pc[protocolVersion] || []).concat(guessFromName)
3131
if (versions.length === 0) {
32-
client.emit('error', new Error(`unsupported/unknown protocol version: ${protocolVersion}, update minecraft-data`))
32+
client.emit('error', new Error(`Unsupported protocol version '${protocolVersion}'; try updating your packages with 'npm update'`))
3333
}
3434
const minecraftVersion = versions[0].minecraftVersion
3535

0 commit comments

Comments
 (0)