aboutsummaryrefslogtreecommitdiffstats
path: root/src/error.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/error.c')
-rw-r--r--src/error.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/error.c b/src/error.c
index 0576d34..4cb3be1 100644
--- a/src/error.c
+++ b/src/error.c
@@ -114,19 +114,19 @@ blogc_error_print(blogc_error_t *err)
switch(err->type) {
case BLOGC_ERROR_SOURCE_PARSER:
- fprintf(stderr, "Source parser error: %s\n", err->msg);
+ fprintf(stderr, "blogc: error: source: %s\n", err->msg);
break;
case BLOGC_ERROR_TEMPLATE_PARSER:
- fprintf(stderr, "Template parser error: %s\n", err->msg);
- break;
- case BLOGC_ERROR_DATETIME_PARSER:
- fprintf(stderr, "Datetime parser error: %s\n", err->msg);
+ fprintf(stderr, "blogc: error: template: %s\n", err->msg);
break;
case BLOGC_ERROR_LOADER:
- fprintf(stderr, "Loader error: %s\n", err->msg);
+ fprintf(stderr, "blogc: error: loader: %s\n", err->msg);
+ break;
+ case BLOGC_WARNING_DATETIME_PARSER:
+ fprintf(stderr, "blogc: warning: datetime: %s\n", err->msg);
break;
default:
- fprintf(stderr, "Unknown error: %s\n", err->msg);
+ fprintf(stderr, "blogc: error: %s\n", err->msg);
}
}