aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgarret <garret@airmail.cc>2022-11-20 07:08:25 +0000
committergarret <garret@airmail.cc>2022-11-20 07:08:25 +0000
commitb912894858795d3ee8345155ae57edb0e1415759 (patch)
tree292bf1288635b8bff17dcf373f917af3d3b64bcd
parent28120898a326dbdbca5331e42e7dfcf4f4f7e69e (diff)
downloaddepctrl-feedmaker-b912894858795d3ee8345155ae57edb0e1415759.tar.gz
depctrl-feedmaker-b912894858795d3ee8345155ae57edb0e1415759.tar.bz2
depctrl-feedmaker-b912894858795d3ee8345155ae57edb0e1415759.zip
feedmaker: message when script ignored
-rwxr-xr-xmake-feed.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/make-feed.lua b/make-feed.lua
index fa1ac97..1d5c0e2 100755
--- a/make-feed.lua
+++ b/make-feed.lua
@@ -90,7 +90,10 @@ local function get_metadata(file)
loadfile(file)()
-- script_name etc are now in our global scope
- if config.ignoreCondition() then return nil end
+ if config.ignoreCondition() then
+ err(file .. ": ignored by config, skipping")
+ return nil
+ end
meta.name = script_name
meta.description = script_description
meta.version = script_version