From: Amos Jeffries Date: Fri, 19 May 2017 13:37:24 +0000 (+1200) Subject: Fix missong ERROR label on template loading errors X-Git-Tag: M-staged-PR71~173 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ec1c54088b9d4459a9437de4d51a43e1541de9bc;p=thirdparty%2Fsquid.git Fix missong ERROR label on template loading errors --- diff --git a/src/errorpage.cc b/src/errorpage.cc index 8c59974f98..eee4e616dd 100644 --- a/src/errorpage.cc +++ b/src/errorpage.cc @@ -332,7 +332,7 @@ TemplateFile::loadFromFile(const char *path) /* with dynamic locale negotiation we may see some failures before a success. */ if (!silent && templateCode < TCP_RESET) { int xerrno = errno; - debugs(4, DBG_CRITICAL, MYNAME << "'" << path << "': " << xstrerr(xerrno)); + debugs(4, DBG_CRITICAL, "ERROR: loading file '" << path << "': " << xstrerr(xerrno)); } wasLoaded = false; return wasLoaded; @@ -340,7 +340,7 @@ TemplateFile::loadFromFile(const char *path) while ((len = FD_READ_METHOD(fd, buf, sizeof(buf))) > 0) { if (!parse(buf, len, false)) { - debugs(4, DBG_CRITICAL, MYNAME << "parse error while reading template file: " << path); + debugs(4, DBG_CRITICAL, "ERROR: parsing error in template file: " << path); wasLoaded = false; return wasLoaded; }