Skip to content

Commit

Permalink
Add exit code to Base.compilecache error message (#57455)
Browse files Browse the repository at this point in the history
Minor tweak to the error message: embed the exit code of the Julia child
process that failed to compile the package.
  • Loading branch information
kpamnany authored Feb 18, 2025
1 parent 29da86b commit fa3ca0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/loading.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3288,7 +3288,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)).")
error("Failed to precompile $(repr("text/plain", pkg)) to $(repr(tmppath)) (exit code $(p.exitcode)).")
end
end

Expand Down

0 comments on commit fa3ca0f

Please sign in to comment.