Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Resolved
-
2.0.0-M7
-
None
Description
In WebRequestCycleForIsis onException there is a code:
val exceptionRecognizerService = getExceptionRecognizerService(); val recognizedIfAny = exceptionRecognizerService.recognize(ex); if(recognizedIfAny.isPresent()) { return respondGracefully(cycle); }
So it recognizes the error, but does not display it.
Maybe
val exceptionRecognizerService = getExceptionRecognizerService(); val recognizedIfAny = exceptionRecognizerService.recognize(ex); if(recognizedIfAny.isPresent()) { getMessageBroker().ifPresent(broker->{ String msg = recognizedIfAny.get().toMessage(getCommonContext().getTranslationService()); if (msg != null) { broker.addMessage( msg); } }); return respondGracefully(cycle); }
could work well.