From c2e880fa8baf5122a00dc3f3affb40dab9562e5b Mon Sep 17 00:00:00 2001 From: Andreas Gustafsson Date: Wed, 10 May 2000 00:37:28 +0000 Subject: [PATCH] indicate reason for failure to open configuration file in error message [RT #61] --- lib/dns/config/confparser.y | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/dns/config/confparser.y b/lib/dns/config/confparser.y index 94ae6f12ad..15ef3bfae5 100644 --- a/lib/dns/config/confparser.y +++ b/lib/dns/config/confparser.y @@ -16,7 +16,7 @@ * SOFTWARE. */ -/* $Id: confparser.y,v 1.78 2000/05/10 00:16:09 gson Exp $ */ +/* $Id: confparser.y,v 1.79 2000/05/10 00:37:28 gson Exp $ */ #include @@ -4997,12 +4997,12 @@ dns_c_parse_namedconf(const char *filename, isc_mem_t *mem, ISC_LEXCOMMENT_CPLUSPLUS | ISC_LEXCOMMENT_SHELL)); - res = isc_lex_openfile(mylexer, (char *)filename) ; /* remove const */ + res = isc_lex_openfile(mylexer, (char *)filename); /* remove const */ if (res != ISC_R_SUCCESS) { isc_log_write(dns_lctx, DNS_LOGCATEGORY_CONFIG, DNS_LOGMODULE_CONFIG, ISC_LOG_CRITICAL, - "%s: Error opening file %s.", - funcname, filename); + "%s: open: %s", filename, + isc_result_totext(res)); goto done; }