Skip to content

Commit d49e006

Browse files
NHDalylucatrv
authored andcommitted
Display the broken julia_cmd on error so the user can identify the problem (#166)
1 parent 87a0734 commit d49e006

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/static_julia.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ function static_julia(
106106
isfile(juliaprog) || error("Cannot find file: \"$juliaprog\"")
107107
quiet || println("Julia program file:\n \"$juliaprog\"")
108108
end
109-
109+
110110
if executable
111111
cprog = abspath(cprog)
112112
isfile(cprog) || error("Cannot find file: \"$cprog\"")
@@ -212,7 +212,7 @@ function build_julia_cmd(
212212
startup_file == nothing && (startup_file = "no")
213213
julia_cmd = `$(Base.julia_cmd())`
214214
if length(julia_cmd.exec) != 5 || !all(startswith.(julia_cmd.exec[2:5], ["-C", "-J", "--compile", "--depwarn"]))
215-
error("Unexpected format of \"Base.julia_cmd()\", you may be using an incompatible version of Julia")
215+
error("Unexpected format of \"Base.julia_cmd()\", you may be using an incompatible version of Julia:\n$julia_cmd")
216216
end
217217
sysimage == nothing || (julia_cmd.exec[3] = "-J$sysimage")
218218
home == nothing || push!(julia_cmd.exec, "-H=$home")

0 commit comments

Comments
 (0)