Pkg.upgrade_manifest errors if the manifest doesn't need upgrading

Why is this an error rather than a no-op or warning?

Pkg.upgrade_manifest()'
ERROR: Format of manifest file at `C:\Users\Mark Nahabedian\NahaJuliaLib.jl\Manifest.toml` already up to date: manifest_format == 2.0.0
Stacktrace:
 [1] pkgerror(msg::String)
   @ Pkg.Types c:\Users\Mark Nahabedian\AppData\Local\Programs\Julia-1.7.3\share\julia\stdlib\v1.7\Pkg\src\Types.jl:68
 [2] upgrade_manifest(ctx::Pkg.Types.Context)
   @ Pkg.API c:\Users\Mark Nahabedian\AppData\Local\Programs\Julia-1.7.3\share\julia\stdlib\v1.7\Pkg\src\API.jl:1689
 [3] upgrade_manifest()
   @ Pkg.API c:\Users\Mark Nahabedian\AppData\Local\Programs\Julia-1.7.3\share\julia\stdlib\v1.7\Pkg\src\API.jl:1687
 [4] top-level scope
   @ none:1
1 Like

c:\Users\Mark Nahabedian\NahaJuliaLib.jl>julia --version
julia --version
julia version 1.7.3

I agree with this, and I am bringing this old post up again, as this still exists on Julia v1.9.0-beta4. This isn’t an error from a user perspective, and the stacktrace seems like internal implementation details that users shouldn’t need to care about in this specific context.