diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2016-09-09 01:13:23 +0200 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2016-09-09 01:13:23 +0200 |
commit | e1db398049adf8ea37cebfc8f816be12f9ba131c (patch) | |
tree | ae6efacc5172caf211abe65510c105029ee2e09e /src/blogc/main.c | |
parent | d97662894bab06133830c2936986b7f1e57ae26f (diff) | |
download | blogc-e1db398049adf8ea37cebfc8f816be12f9ba131c.tar.gz blogc-e1db398049adf8ea37cebfc8f816be12f9ba131c.tar.bz2 blogc-e1db398049adf8ea37cebfc8f816be12f9ba131c.zip |
*: centralize error handling
Diffstat (limited to 'src/blogc/main.c')
-rw-r--r-- | src/blogc/main.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/blogc/main.c b/src/blogc/main.c index 8563c68..beb67d6 100644 --- a/src/blogc/main.c +++ b/src/blogc/main.c @@ -26,7 +26,6 @@ #include "template-parser.h" #include "loader.h" #include "renderer.h" -#include "errors.h" #include "../common/error.h" #include "../common/utf8.h" #include "../common/utils.h" @@ -224,7 +223,7 @@ main(int argc, char **argv) bc_slist_t *s = blogc_source_parse_from_files(config, sources, &err); if (err != NULL) { - blogc_error_print(err); + bc_error_print(err); rv = 2; goto cleanup2; } @@ -251,7 +250,7 @@ main(int argc, char **argv) bc_slist_t* l = blogc_template_parse_from_file(template, &err); if (err != NULL) { - blogc_error_print(err); + bc_error_print(err); rv = 2; goto cleanup3; } |