Skip to content

Commit 893678c

Browse files
authored
Merge pull request #23 from mortenpi/patch-1
Check that JULIA_PKG_SERVER is non-empty
2 parents 87517b4 + 141053e commit 893678c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/PkgAuthentication.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ abstract type Failure <: State end
2323
## authentication state machine
2424

2525
function _assert_pkg_server_env_var_is_set()
26-
if !haskey(ENV, pkg_server_env_var_name)
27-
msg = "The `$(pkg_server_env_var_name)` environment variable must be set"
26+
if isempty(get(ENV, pkg_server_env_var_name, ""))
27+
msg = "The `$(pkg_server_env_var_name)` environment variable must be set and non-empty"
2828
throw(ErrorException(msg))
2929
end
3030
return nothing

0 commit comments

Comments
 (0)