diff options
author | sanine <sanine.not@pm.me> | 2022-01-04 23:18:10 -0600 |
---|---|---|
committer | sanine <sanine.not@pm.me> | 2022-01-04 23:18:10 -0600 |
commit | 78ee0de29b46f5faed6ca2ae5222c64fbd9a2c1e (patch) | |
tree | 02122654d8b360471760b8e4809151ca6c60c02a /src/lua-script/script.lua | |
parent | 72e13dff9ff4fde91b84054167da91a5d27cb952 (diff) |
allow overriding the builtin script
Diffstat (limited to 'src/lua-script/script.lua')
-rw-r--r-- | src/lua-script/script.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua-script/script.lua b/src/lua-script/script.lua index 65bf0cf..0a6323a 100644 --- a/src/lua-script/script.lua +++ b/src/lua-script/script.lua @@ -54,7 +54,6 @@ RssChannel.addItem = function(self, tbl) error('items must specify a pubDate!') else tbl.pubDate = to_rfc822(tbl.pubDate, 'Z') - print(tbl.pubDate) end table.insert(self.items, tbl) @@ -437,7 +436,8 @@ return function(config) function process_lua_file(filename, parent) local success, result = pcall(loadfile(argent.config.site_directory..parent..filename)) if not success then - print('WARNING: '..result) + argent.log('error', result) + argent.log('warn', fmt('%q will not be processed for output!', parent..filename)) return end |