feat(bootstrap): return error string from C searcher
This commit is contained in:
parent
1d37fa1be3
commit
0766d804ba
|
@ -38,8 +38,8 @@ package.cpath =
|
|||
|
||||
package.native_plugins = {}
|
||||
package.searchers = { package.searchers[1], package.searchers[2], function(modname)
|
||||
local path = package.searchpath(modname, package.cpath)
|
||||
if not path then return nil end
|
||||
local path, err = package.searchpath(modname, package.cpath)
|
||||
if not path then return err end
|
||||
return system.load_native_plugin, path
|
||||
end }
|
||||
|
||||
|
|
Loading…
Reference in New Issue