Skip to content

Commit 4032092

Browse files
authored
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 377f917 commit 4032092

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
@@ -2477,7 +2477,7 @@ function compilecache(pkg::PkgId, path::String, internal_stderr::IO = stderr, in
24772477
if p.exitcode == 125
24782478
return PrecompilableError()
24792479
else
2480-
error("Failed to precompile $pkg to $(repr(tmppath)).")
2480+
error("Failed to precompile $(repr("text/plain", pkg)) to $(repr(tmppath)) (exit code $(p.exitcode)).")
24812481
end
24822482
end
24832483

0 commit comments

Comments
 (0)