From e8198f48e786a5f7e3c1501c8197a4ef87f89e91 Mon Sep 17 00:00:00 2001 From: Kiran Pamnany Date: Tue, 18 Feb 2025 19:25:13 -0500 Subject: [PATCH] Use `Base.process_status(p)` instead of `p.exitcode` in error message (#57460) Fixup https://github.com/JuliaLang/julia/pull/57455 --- base/loading.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/loading.jl b/base/loading.jl index f1da2ecd41e86..e90cb67937ec6 100644 --- a/base/loading.jl +++ b/base/loading.jl @@ -2477,7 +2477,7 @@ function compilecache(pkg::PkgId, path::String, internal_stderr::IO = stderr, in if p.exitcode == 125 return PrecompilableError() else - error("Failed to precompile $(repr("text/plain", pkg)) to $(repr(tmppath)) (exit code $(p.exitcode)).") + error("Failed to precompile $(repr("text/plain", pkg)) to $(repr(tmppath)) ($(Base.process_status(p))).") end end