diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2016-09-09 02:35:49 +0200 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2016-09-09 02:35:49 +0200 |
commit | ba38817ab8dd3606de9e5d40c83c8f8d185f671b (patch) | |
tree | 7b950cd206ce429da7e031bf4e34cb89ad60bab3 /src/common/error.c | |
parent | 0dffa9a91ef47fc0ac6b96cb5e96e7e73b8018b8 (diff) | |
download | blogc-ba38817ab8dd3606de9e5d40c83c8f8d185f671b.tar.gz blogc-ba38817ab8dd3606de9e5d40c83c8f8d185f671b.tar.bz2 blogc-ba38817ab8dd3606de9e5d40c83c8f8d185f671b.zip |
common: error: do not prepend "blogc: " when printing
Diffstat (limited to 'src/common/error.c')
-rw-r--r-- | src/common/error.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/common/error.c b/src/common/error.c index 8f6735b..1ea6e0d 100644 --- a/src/common/error.c +++ b/src/common/error.c @@ -109,20 +109,23 @@ bc_error_print(bc_error_t *err) return; switch(err->type) { + case BC_ERROR_CONFIG_PARSER: + fprintf(stderr, "error: config-parser: %s\n", err->msg); + break; case BLOGC_ERROR_SOURCE_PARSER: - fprintf(stderr, "blogc: error: source: %s\n", err->msg); + fprintf(stderr, "error: source: %s\n", err->msg); break; case BLOGC_ERROR_TEMPLATE_PARSER: - fprintf(stderr, "blogc: error: template: %s\n", err->msg); + fprintf(stderr, "error: template: %s\n", err->msg); break; case BLOGC_ERROR_LOADER: - fprintf(stderr, "blogc: error: loader: %s\n", err->msg); + fprintf(stderr, "error: loader: %s\n", err->msg); break; case BLOGC_ERROR_FILE: - fprintf(stderr, "blogc: error: file: %s\n", err->msg); + fprintf(stderr, "error: file: %s\n", err->msg); break; case BLOGC_WARNING_DATETIME_PARSER: - fprintf(stderr, "blogc: warning: datetime: %s\n", err->msg); + fprintf(stderr, "warning: datetime: %s\n", err->msg); break; default: fprintf(stderr, "blogc: error: %s\n", err->msg); |