mirror of
https://github.com/koreader/koreader.git
synced 2025-12-13 20:36:53 +01:00
[fix] setupkoenv: change "ERROR" to "(warning)" (#3860)
Not all failures to load are fatal. I still worry that this might be too noisy but it'd be useful to always have available.
This commit is contained in:
@@ -26,7 +26,7 @@ ffi.load = function(lib)
|
|||||||
local lib_path = package.searchpath(lib, "./lib?.so;./libs/lib?.so;./libs/lib?.so.1")
|
local lib_path = package.searchpath(lib, "./lib?.so;./libs/lib?.so;./libs/lib?.so.1")
|
||||||
|
|
||||||
if not lib_path then
|
if not lib_path then
|
||||||
io.write("ffi.load ERROR: ", re, "\n")
|
io.write("ffi.load (warning): ", re, "\n")
|
||||||
error('Not able to load dynamic library: ' .. lib)
|
error('Not able to load dynamic library: ' .. lib)
|
||||||
else
|
else
|
||||||
io.write("ffi.load (assisted searchpath): ", lib_path, "\n")
|
io.write("ffi.load (assisted searchpath): ", lib_path, "\n")
|
||||||
|
|||||||
Reference in New Issue
Block a user