From: Christos Tsantilas Date: Sat, 14 May 2011 06:11:27 +0000 (+0300) Subject: Fix for "Separate SSL error detail name and message" patch X-Git-Tag: take07~16^2~13 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0ab68838904142574dd402ae9f40239fa742c768;p=thirdparty%2Fsquid.git Fix for "Separate SSL error detail name and message" patch Use "#if USE_SSL / #endif" for printing . Currently we have error details only for SSL related errors. --- diff --git a/src/errorpage.cc b/src/errorpage.cc index 563f10af24..1b266a4295 100644 --- a/src/errorpage.cc +++ b/src/errorpage.cc @@ -923,10 +923,13 @@ ErrorState::Convert(char token, bool building_deny_info_url, bool allowRecursion break; case 'x': +#if USE_SSL if (detail) mb.Printf("%s", detail->errorName()); - else if (!building_deny_info_url) - p = "[Unknown Error Code]"; + else +#endif + if (!building_deny_info_url) + p = "[Unknown Error Code]"; break; case 'z':