diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2015-06-15 02:46:24 -0300 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2015-06-15 02:46:24 -0300 |
commit | 0fcf595fddaa6cb976880f4029f13c5fed8a4331 (patch) | |
tree | 14cda55e26032aa1da38db402b3f77422d8584b9 /src/main.c | |
parent | 9476381cd2a130aebecbfbbbae29e0c6f9bbaafc (diff) | |
download | blogc-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; } |