From 1fd20578efdb8cfbea7fcc9d8e72e2f031e6d98e Mon Sep 17 00:00:00 2001 From: takase1121 <20792268+takase1121@users.noreply.github.com> Date: Wed, 26 Apr 2023 08:29:57 +0800 Subject: [PATCH] feat(bootstrap): return error string from C searcher --- data/core/start.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/core/start.lua b/data/core/start.lua index 2ad71d54..f85d4087 100644 --- a/data/core/start.lua +++ b/data/core/start.lua @@ -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 }