From fbfd7d5c5c64813dca17c09b85855c3491b77b8c Mon Sep 17 00:00:00 2001 From: Ian Butterworth Date: Mon, 9 Dec 2024 09:18:44 -0500 Subject: [PATCH] shorten and expand --- src/Operations.jl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Operations.jl b/src/Operations.jl index c4020aafe2..4ade9ae4a6 100644 --- a/src/Operations.jl +++ b/src/Operations.jl @@ -2747,9 +2747,11 @@ function print_status(env::EnvCache, old_env::Union{Nothing,EnvCache}, registrie loaded_version = pkgversion(m) env_version = pkg_spec.version if loaded_version !== env_version - printstyled(io, " [different version loaded: v$loaded_version]"; color=:light_yellow) + printstyled(io, " [loaded: v$loaded_version]"; color=:light_yellow) else - printstyled(io, " [different path loaded, but same version: `$loaded_path` expected `$env_path`]"; color=:light_yellow) + loaded_version_str = loaded_version === nothing ? "" : " (v$loaded_version)" + env_version_str = env_version === nothing ? "" : " (v$env_version)" + printstyled(io, " [loaded: `$loaded_path`$loaded_version_str expected `$env_path`$env_version_str]"; color=:light_yellow) end end end