Skip to content

Commit fa3ca0f

Browse files
authored
Add exit code to Base.compilecache error message (#57455)
Minor tweak to the error message: embed the exit code of the Julia child process that failed to compile the package.
1 parent 29da86b commit fa3ca0f

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
@@ -3288,7 +3288,7 @@ function compilecache(pkg::PkgId, path::String, internal_stderr::IO = stderr, in
32883288
if p.exitcode == 125
32893289
return PrecompilableError()
32903290
else
3291-
error("Failed to precompile $(repr("text/plain", pkg)) to $(repr(tmppath)).")
3291+
error("Failed to precompile $(repr("text/plain", pkg)) to $(repr(tmppath)) (exit code $(p.exitcode)).")
32923292
end
32933293
end
32943294

0 commit comments

Comments
 (0)