aboutsummaryrefslogtreecommitdiffstats
path: root/make-feed.lua
diff options
context:
space:
mode:
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