[chore] Always io.write ffi.load error message (#3859)

As per https://github.com/koreader/koreader/issues/3853#issuecomment-380521086
pull/3860/head
Frans de Jonge 6 years ago committed by GitHub
parent fc2cb476a8
commit dd8e08fd00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -26,6 +26,7 @@ ffi.load = function(lib)
local lib_path = package.searchpath(lib, "./lib?.so;./libs/lib?.so;./libs/lib?.so.1")
if not lib_path then
io.write("ffi.load ERROR: ", re, "\n")
error('Not able to load dynamic library: ' .. lib)
else
io.write("ffi.load (assisted searchpath): ", lib_path, "\n")

Loading…
Cancel
Save