diff --git a/src/ulo-storage-applications/src/main/java/info/mathhub/uloapi/html/Errors.java b/src/ulo-storage-applications/src/main/java/info/mathhub/uloapi/html/Errors.java index dce0b3aa40251aa7e7c05d7f21ca58989841aaaf..1df9573a87fd2d47f5980c6b050f3c2e1479d30e 100644 --- a/src/ulo-storage-applications/src/main/java/info/mathhub/uloapi/html/Errors.java +++ b/src/ulo-storage-applications/src/main/java/info/mathhub/uloapi/html/Errors.java @@ -17,6 +17,8 @@ public class Errors { /** * Singleton instance of the Freemarker engine for use with errors. * Used in {@link Errors#createError}. + * + * This object is not safe for concurrent use by multiple threads. */ private static final FreeMarkerEngine freemarker = new FreeMarkerEngine(); diff --git a/src/ulo-storage-applications/src/main/resources/spark/template/freemarker/error.flt b/src/ulo-storage-applications/src/main/resources/spark/template/freemarker/error.flt index 5a411714f66697a9936786e5ffe2f5b23779ec28..ee264ca07459620231ca3436543500794a34de64 100644 --- a/src/ulo-storage-applications/src/main/resources/spark/template/freemarker/error.flt +++ b/src/ulo-storage-applications/src/main/resources/spark/template/freemarker/error.flt @@ -7,6 +7,11 @@ <#macro page_main> <h2>Error ${http_status}: ${http_description}</h2> + <p> + If you are the administrator of this instance, consider looking at the log + output. + </p> + <#if message?has_content> <code> ${exception_message}