--- a/dav/config.c Tue Oct 03 16:59:39 2017 +0200 +++ b/dav/config.c Wed Oct 04 13:06:24 2017 +0200 @@ -528,7 +528,7 @@ } else { print_error( node->line, - "unknown attribute %s\n", (char*)attr->name); + "unexpected attribute %s\n", (char*)attr->name); return 1; } } @@ -545,7 +545,7 @@ } if(dav_get_namespace(context, prefix)) { - fprintf(stderr, "Error: namespace prefix '%s' already used\n", prefix); + print_error(node->line, "namespace prefix '%s' already used\n", prefix); return 1; }