ui.modern.freemarker.error_format

Background

This option specifies in which format the (FreeMarker) errors should be displayed in the browser, assuming ui.modern.freemarker.display_errors is enabled.

Possible values:

  • exception: Stop the template file processing and display the error message.

  • html: Wrap the error message in HTML comment tags.

  • json: Wrap the error message in JSON comment tags.

  • string: Display the bare error message.

Setting the key

Set this configuration key in the results page (preferred) or search package configuration.

Use the configuration key editor to add or edit the ui.modern.freemarker.error_format key, and set the value. This can be set to any valid ErrorFormat allowed values: exception, html, json or string value.

Default value

When an error occurs, stop template processing and display an error message:

ui.modern.freemarker.error_format=exception

Examples

Output error messages in HTML comments:

ui.modern.freemarker.error_format=html