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

kzonecheck: added error message

parent 515fb0bc
No related branches found
No related tags found
No related merge requests found
......@@ -121,6 +121,14 @@ int main(int argc, char *argv[])
}
return EXIT_SUCCESS;
} else {
fprintf(outfile, "Fatal zone error. Zone file cannot be used for server.\n");
if(ret == KNOT_EACCES || ret == KNOT_EFILE) {
fprintf(stderr, "Invalid zone file\n");
} else if (ret != KNOT_ERROR) {
fprintf(stderr, "error: %s\n", knot_strerror(ret));
}
return EXIT_FAILURE;
}
}
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