mirror of
https://github.com/erlef/setup-beam.git
synced 2026-07-23 07:06:07 +00:00
Fix OTP version null check
This commit is contained in:
committed by
Christoph Grothaus
parent
53bf0a5069
commit
2c433c16ac
+1
-1
@@ -170,7 +170,7 @@ async function getOTPVersion(otpSpec0, osVersion, hexMirrors) {
|
||||
if (isVersion(otpSpec0)) {
|
||||
otpSpec = `OTP-${otpSpec0}` // ... it's a version!
|
||||
}
|
||||
if (otpVersion === null) {
|
||||
if (otpVersion == null) {
|
||||
throw new Error(
|
||||
`Requested Erlang/OTP version (${otpSpec0}) not found in version list ` +
|
||||
"(should you be using option 'version-type': 'strict'?)",
|
||||
|
||||
Reference in New Issue
Block a user