summaryrefslogtreecommitdiff
path: root/src/lua-script/script.h
diff options
context:
space:
mode:
authorsanine <sanine.not@pm.me>2022-01-04 23:18:10 -0600
committersanine <sanine.not@pm.me>2022-01-04 23:18:10 -0600
commit78ee0de29b46f5faed6ca2ae5222c64fbd9a2c1e (patch)
tree02122654d8b360471760b8e4809151ca6c60c02a /src/lua-script/script.h
parent72e13dff9ff4fde91b84054167da91a5d27cb952 (diff)
allow overriding the builtin script
Diffstat (limited to 'src/lua-script/script.h')
-rw-r--r--src/lua-script/script.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua-script/script.h b/src/lua-script/script.h
index 0b58f11..8f0b7cc 100644
--- a/src/lua-script/script.h
+++ b/src/lua-script/script.h
@@ -55,7 +55,6 @@ const char *argent_script =
" error('items must specify a pubDate!')\n"
" else\n"
" tbl.pubDate = to_rfc822(tbl.pubDate, 'Z')\n"
- " print(tbl.pubDate)\n"
" end\n"
"\n"
" table.insert(self.items, tbl)\n"
@@ -438,7 +437,8 @@ const char *argent_script =
" function process_lua_file(filename, parent)\n"
" local success, result = pcall(loadfile(argent.config.site_directory..parent..filename))\n"
" if not success then\n"
- " print('WARNING: '..result)\n"
+ " argent.log('error', result)\n"
+ " argent.log('warn', fmt('%q will not be processed for output!', parent..filename))\n"
" return\n"
" end\n"
"\n"