aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2015-06-15 02:46:24 -0300
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2015-06-15 02:46:24 -0300
commit0fcf595fddaa6cb976880f4029f13c5fed8a4331 (patch)
tree14cda55e26032aa1da38db402b3f77422d8584b9 /src/main.c
parent9476381cd2a130aebecbfbbbae29e0c6f9bbaafc (diff)
downloadblogc-0fcf595fddaa6cb976880f4029f13c5fed8a4331.tar.gz
blogc-0fcf595fddaa6cb976880f4029f13c5fed8a4331.tar.bz2
blogc-0fcf595fddaa6cb976880f4029f13c5fed8a4331.zip
main: do not return 0 when error happens
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index baf3dc8..292c9ff 100644
--- a/src/main.c
+++ b/src/main.c
@@ -206,12 +206,14 @@ main(int argc, char **argv)
b_slist_t *s = blogc_source_parse_from_files(config, sources, &err);
if (err != NULL) {
blogc_error_print(err);
+ rv = 2;
goto cleanup2;
}
b_slist_t* l = blogc_template_parse_from_file(template, &err);
if (err != NULL) {
blogc_error_print(err);
+ rv = 2;
goto cleanup3;
}