Skip to content

Commit

Permalink
Fix show_dlopen_error
Browse files Browse the repository at this point in the history
See the first version of the comment
JuliaPy#592 (comment)
  • Loading branch information
tkf committed Oct 17, 2018
1 parent ae9bbba commit d8aa844
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions deps/build.jl
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ function exec_find_libpython(python::AbstractString, options)
return readlines(pythonenv(cmd))
end

function show_dlopen_error(e)
function show_dlopen_error(lib, e)
if PYCALL_DEBUG_BUILD
println(stderr, "dlopen($libpath_lib) ==> ", e)
println(stderr, "dlopen($lib) ==> ", e)
# Using STDERR since find_libpython.py prints debugging
# messages to STDERR too.
end
Expand All @@ -75,7 +75,7 @@ function find_libpython(python::AbstractString)
try
return (Libdl.dlopen(lib, dlopen_flags), lib)
catch e
show_dlopen_error(e)
show_dlopen_error(lib, e)
end
end

Expand All @@ -94,7 +94,7 @@ function find_libpython(python::AbstractString)
# compare libpython.
return (libpython, Libdl.dlpath(libpython))
catch e
show_dlopen_error(e)
show_dlopen_error(lib, e)
end
end

Expand Down

0 comments on commit d8aa844

Please sign in to comment.