mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
[chore] Always io.write ffi.load error message (#3859)
As per https://github.com/koreader/koreader/issues/3853#issuecomment-380521086
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user