Skip to main content
September 17, 2009
Question

default error message

  • September 17, 2009
  • 1 reply
  • 813 views

1. Is there an administrator setting that can make the path and name of the referring template be left out in a default error message but still be recorded in application.log?

2. If the answer to 1. is yes, does the ColdFusion service need to be turned off and back on for it to take effect?

3. Is cferror with type of request or exception as good as usiing cfcatch/try blocks?

Thank you very much.

This topic has been closed for replies.

1 reply

BKBK
Community Expert
Community Expert
September 17, 2009

1. Yes. The referrer of a page is CGI.HTTP_Referer. The administrator allows you to switch off CGI variables from the debugging output. The settings are  under Debugging & Logging => Debug Output Settings. You simply have to uncheck the CGI checkbox.

2. No, you don't have to restart Coldfusion. Just press the button to submit the changes.

3. Cferror is just as good as cfcatch/try. However, cferror is suited to site-wide error-handling, whereas try-catch is suited for error-handling within a block of code or page.