From ec1c54088b9d4459a9437de4d51a43e1541de9bc Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Sat, 20 May 2017 01:37:24 +1200 Subject: [PATCH] Fix missong ERROR label on template loading errors --- src/errorpage.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.47.2