Skip to content
Snippets Groups Projects
Commit 8d8ba3e7 authored by Vitezslav Kriz's avatar Vitezslav Kriz
Browse files

kzonecheck: consistent error messages

parent f116c9b7
No related branches found
No related tags found
No related merge requests found
......@@ -120,7 +120,7 @@ int main(int argc, char *argv[])
}
return EXIT_SUCCESS;
case KNOT_ESEMCHECK:
return 2;
return EXIT_FAILURE;
case KNOT_EACCES:
case KNOT_EFILE:
fprintf(stderr, "Failed to load the zone file.\n");
......
......@@ -38,7 +38,7 @@ int err_handler_printf(err_handler_t *handler, const zone_contents_t *zone,
const char *errmsg = semantic_check_error_msg(error);
const char *type = node ? "name" : "zone";
const char *type = node ? "record" : "zone";
char *name = NULL;
if (node) {
name = knot_dname_to_str_alloc(node->owner);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment