Skip to content

Commit

Permalink
Make HEX obvious
Browse files Browse the repository at this point in the history
  • Loading branch information
PallHaraldsson committed Nov 7, 2024
1 parent 4a05750 commit 809921c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions base/process.jl
Original file line number Diff line number Diff line change
Expand Up @@ -679,8 +679,9 @@ process_signaled(s::Process) = (s.termsignal > 0)
function process_status(s::Process)
return process_running(s) ? "ProcessRunning" :
process_signaled(s) ? "ProcessSignaled(" * string(s.termsignal) * ")" :
process_exited(s) ? "ProcessExited(" * uppercase(string(s.exitcode, base=Sys.iswindows() ? 16 : 10)) * ")" * s.exitcode == 0xC0000139 ?
" Hint: Could be a PATH problem related to e.g. libLLVM (i.e. a procedure entry point could not be located in the dynamic link library)" : "" :
process_exited(s) ? "ProcessExited(" * (Sys.iswindows() ? ("0x" * uppercase(string(s.exitcode, 16))) : string(s.exitcode)) * (
s.exitcode == 0xC0000139 ? " Hint: Could be a PATH problem related to e.g. libLLVM (i.e. a procedure entry point could not be located in the dynamic link library) )" : ")"
) :
error("process status error")
end

Expand Down

0 comments on commit 809921c

Please sign in to comment.