Skip to content

Commit 2eac8b6

Browse files
kpamnanynickrobinson251
authored andcommitted
Add exit code to Base.compilecache error message (JuliaLang#57455) (#215)
Minor tweak to the error message: embed the exit code of the Julia child process that failed to compile the package.
1 parent 597f90a commit 2eac8b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/loading.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2547,7 +2547,7 @@ function compilecache(pkg::PkgId, path::String, internal_stderr::IO = stderr, in
25472547
if p.exitcode == 125
25482548
return PrecompilableError()
25492549
else
2550-
error("Failed to precompile $pkg to $(repr(tmppath)).")
2550+
error("Failed to precompile $(repr("text/plain", pkg)) to $(repr(tmppath)) (exit code $(p.exitcode)).")
25512551
end
25522552
end
25532553

0 commit comments

Comments
 (0)