commit ac07495ae1dcc464e2be94b9667aa4a72378bb13
parent 3aa0f66199646daae7c99d0003ec82555b852338
Author: Paco Esteban <paco@e1e0.net>
Date: Thu, 18 Jun 2020 21:07:00 +0200
fix error message on load footer
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ssnail.c b/ssnail.c
@@ -346,7 +346,7 @@ write_html(struct article *ap, char *head_tpl, char *foot_tpl)
header = str_rep(header, "$author$", ap->author);
header = str_rep(header, "$date$", ap->date);
if (load_from_file(&footer, foot_tpl) == 0) {
- error = ssnail_error_msg(2, "load header");
+ error = ssnail_error_msg(2, "load footer");
goto out;
}
footer = str_rep(footer, "$title$", ap->title);