Skip to content

Commit 080aa52

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/transforms/serializer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ function createProtocol (state, direction, version, customPackets, compiled = tr
2424
throw new Error(`No data available for version ${version}`)
2525
} else if (versionInfo && versionInfo.version !== mcData.version.version) {
2626
// The protocol version returned by node-minecraft-data constructor does not match the data in minecraft-data's protocolVersions.json
27-
throw new Error(`Do not have protocol data for protocol version ${versionInfo.version} (attempted to use ${mcData.version.version} data)`)
27+
throw new Error(`Unsupported protocol version '${versionInfo.version}' (attempted to use '${mcData.version.version}' data); try updating your packages with 'npm update'`)
2828
}
2929

3030
if (compiled) {

0 commit comments

Comments
 (0)