UI.modern.freemarker.display_errors
Specify whether to display Freemarker errors in the browser or not.
Key: ui.modern.freemarker.display_errors
Type: Boolean
Can be set in: profile.cfg, collection.cfg
Description
This setting should be used on production servers to prevent detailed error messages from appearing to end users. When error messages are suppressed in the browser the failing block of code causing the error will be silently ignored and the processing will continue at the next code block. Depending on the structure of your template file this can lead to some sections of the search results page not being displayed at all when an error occurs.
Template files errors are always logged to one of the Modern UI log files:
$SEARCH_HOME/web/logs/modernui.(Public/Admin).log
.$SEARCH_HOME/data/<collection>/log/modernui.(Public/Admin).log
(Linux)$SEARCH_HOME/web/logs/modernui.<collection>.(Public/Admin).log
(Windows)
When this setting is enabled, the errors will also be displayed on the search results page.
Default Value
By default the errors are displayed in the browser:
ui.modern.freemarker.display_errors=true
Examples
To prevent error messages from being displayed in the browser:
ui.modern.freemarker.display_errors=false