From 3bc09f75dec9c0e868c950406065f40752e459d7 Mon Sep 17 00:00:00 2001 From: Caleb Maclennan Date: Wed, 11 Oct 2023 17:05:56 +0300 Subject: [PATCH] chore(cli): Drop warnings from resolveFile(), nil means it didn't resolve anything --- core/sile.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/sile.lua b/core/sile.lua index 9579c6122..fdc22a591 100644 --- a/core/sile.lua +++ b/core/sile.lua @@ -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