Skip to content

Commit

Permalink
chore(cli): Drop warnings from resolveFile(), nil means it didn't res…
Browse files Browse the repository at this point in the history
…olve anything
  • Loading branch information
alerque committed Oct 11, 2023
1 parent 5cb1d05 commit 3bc09f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/sile.lua
Original file line number Diff line number Diff line change
Expand Up @@ -393,8 +393,8 @@ function SILE.resolveFile (filename, pathprefix)
local resolved, err = package.searchpath(filename, path, "/")
if resolved then
if SILE.makeDeps then SILE.makeDeps:add(resolved) end
else
SU.warn(("Unable to find file '%s': %s"):format(filename, err))
elseif SU.debugging("paths") then
SU.debug("paths", ("Unable to find file '%s': %s"):format(filename, err))
end
return resolved
end
Expand Down

0 comments on commit 3bc09f7

Please sign in to comment.