Skip to content

Commit 84e26dd

Browse files
authored
Update PkgAuthentication.jl
1 parent 87517b4 commit 84e26dd

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(strip(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)