mirror of
https://github.com/danbulant/discord.js
synced 2026-05-25 13:02:38 +00:00
Small fixes to version check
This commit is contained in:
parent
190075d070
commit
af70a34a66
1 changed files with 3 additions and 3 deletions
|
|
@ -17,10 +17,10 @@ var major = parseInt(v[0]),
|
|||
minor = parseInt(v[1]),
|
||||
patch = parseInt(v[2]);
|
||||
|
||||
if((major == 0 && minor < 12) || (major == 0 && patch < 7)) {
|
||||
if((major == 0 && minor < 12) || (major == 0 && minor == 12 && patch < 7)) {
|
||||
console.log("discord.js doesn't support node versions less than 0.12.7.");
|
||||
console.log("If you /really/ want to run it on this node (" + v +
|
||||
"), then remove the check from entrypoint.js.");
|
||||
console.log("If you /really/ want to run it on this node (" +
|
||||
process.version + "), then remove the check from entrypoint.js.");
|
||||
console.log("However, this is unsupported and WILL cause problems.");
|
||||
console.log("Exiting now.");
|
||||
process.exit(1);
|
||||
|
|
|
|||
Loading…
Reference in a new issue