Fix OTP version null check

This commit is contained in:
Christoph Grothaus
2023-06-14 10:13:46 +02:00
committed by Christoph Grothaus
parent 53bf0a5069
commit 2c433c16ac
+1 -1
View File
@@ -170,7 +170,7 @@ async function getOTPVersion(otpSpec0, osVersion, hexMirrors) {
if (isVersion(otpSpec0)) { if (isVersion(otpSpec0)) {
otpSpec = `OTP-${otpSpec0}` // ... it's a version! otpSpec = `OTP-${otpSpec0}` // ... it's a version!
} }
if (otpVersion === null) { if (otpVersion == null) {
throw new Error( throw new Error(
`Requested Erlang/OTP version (${otpSpec0}) not found in version list ` + `Requested Erlang/OTP version (${otpSpec0}) not found in version list ` +
"(should you be using option 'version-type': 'strict'?)", "(should you be using option 'version-type': 'strict'?)",