aboutsummaryrefslogtreecommitdiffstats
path: root/make-feed.lua
diff options
context:
space:
mode:
authorgarret <garret@airmail.cc>2022-11-20 05:18:58 +0000
committergarret <garret@airmail.cc>2022-11-20 05:18:58 +0000
commita9d756932b59ad74f4febc84a6f030453564d488 (patch)
tree99f83a7835a22dfd4e72ff15f80f8b902c3dbb74 /make-feed.lua
parentda95c4ee8f19759c08183f3111f79c5e96e25dbe (diff)
downloaddepctrl-feedmaker-a9d756932b59ad74f4febc84a6f030453564d488.tar.gz
depctrl-feedmaker-a9d756932b59ad74f4febc84a6f030453564d488.tar.bz2
depctrl-feedmaker-a9d756932b59ad74f4febc84a6f030453564d488.zip
feedmaker: print errors to stderr
Diffstat (limited to 'make-feed.lua')
-rwxr-xr-xmake-feed.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/make-feed.lua b/make-feed.lua
index 07f3609..9de86eb 100755
--- a/make-feed.lua
+++ b/make-feed.lua
@@ -62,8 +62,8 @@ local function get_files(path)
local absolute = clean_path(path, file)
if file == "." or file == ".." then -- silently skip dir and 1-level-up dir
elseif pcall(lfs.dir, absolute) then file = join_tables(files, get_files(absolute)) -- search recursively
- elseif extension ~= "lua" then print(absolute .. ": not a lua file, skipping")
- elseif not valid_namespace(name) then print(absolute .. ": invalid namespace, skipping")
+ elseif extension ~= "lua" then io.stderr:write(absolute .. ": not a lua file, skipping\n")
+ elseif not valid_namespace(name) then io.stderr:write(absolute .. ": invalid namespace, skipping\n")
else table.insert(files, absolute) end
end
return files