Skip to content

Commit

Permalink
Fix bad error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
zauguin committed Feb 5, 2024
1 parent 9621023 commit fbf1d69
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/luaotfload-database.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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 = { }
Expand Down

0 comments on commit fbf1d69

Please sign in to comment.