diff options
Diffstat (limited to 'examples/read_conf.c')
-rw-r--r-- | examples/read_conf.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/examples/read_conf.c b/examples/read_conf.c index 54a1e86..18802e3 100644 --- a/examples/read_conf.c +++ b/examples/read_conf.c @@ -8,12 +8,7 @@ int main(int argc, char **argv) { pom_error *error; pom_conf *conf = pom_load_path(argc >= 2 ? argv[1] : "conf.pom", &error); if (!conf) { - char *string = pom_error_to_string(error); - for (char *s=string; *s; s++) - if (*s >= 'a' && *s <= 'z') - *s += 'A' - 'a'; - printf("%s\n",string); - free(string); + pom_error_print(error); free(error); return EXIT_FAILURE; } |