-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add exit code to Base.compilecache
error message
#57455
Conversation
CI failure is from |
Minor tweak to the error message: embed the exit code of the Julia child process that failed to compile the package.
@@ -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)).") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems like it could be a bit confusing?
julia> p = run(`./julia -e 'ccall(:jl_raise, Cvoid, (Cint,), 23)'`, wait=false); wait(p)
julia> p.exitcode
0
julia> Base.process_status(p)
"ProcessSignaled(2)"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ack. So what I want is to embed $(Base.process_status(p))
instead of just $(p.exitcode)
?
…215) Minor tweak to the error message: embed the exit code of the Julia child process that failed to compile the package.
Minor tweak to the error message: embed the exit code of the Julia child process that failed to compile the package.