[latex3-commits] [latex3/luaotfload] dev: Fix bad error handling (fbf1d69f)
github at latex-project.org
github at latex-project.org
Mon Feb 5 20:05:05 CET 2024
Repository : https://github.com/latex3/luaotfload
On branch : dev
Link : https://github.com/latex3/luaotfload/commit/fbf1d69f0e9c62e203b8d22e22b7156d15fa4042
>---------------------------------------------------------------
commit fbf1d69f0e9c62e203b8d22e22b7156d15fa4042
Author: Marcel Fabian Krüger <tex at 2krueger.de>
Date: Mon Feb 5 20:05:05 2024 +0100
Fix bad error handling
>---------------------------------------------------------------
fbf1d69f0e9c62e203b8d22e22b7156d15fa4042
src/luaotfload-database.lua | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/luaotfload-database.lua b/src/luaotfload-database.lua
index e77f23e1..39efc1e5 100644
--- a/src/luaotfload-database.lua
+++ b/src/luaotfload-database.lua
@@ -2236,10 +2236,10 @@ local function process_dir (dir)
dir, mode_or_err = realpath(dir)
if not dir then
logreport ("both", 1, "db", "Skipping font directory: %s", mode_or_err)
- return process_dir_tree (acc, dirs, done)
+ return {}
elseif mode_or_err ~= 'directory' then
- logreport ("both", 1, "db", "Skipping non-directory wile searching fonts: %q (%s)", dir, mode_or_err)
- return process_dir_tree (acc, dirs, done)
+ logreport ("both", 1, "db", "Skipping non-directory while searching fonts: %q (%s)", dir, mode_or_err)
+ return {}
end
local files = { }
More information about the latex3-commits
mailing list.