Closed liborjelinek closed 6 years ago
I'd say rendering the exception message is not necessarily something the end-user has to see. But logging is important - are you sure that the exception is not logged right now?
Hey @raphaelbauer -- I think some of the work I've been putting in on a "Diagnostic" mode enhancement for Dev mode may help @bircow
It's mostly while in dev mode that I find more detailed error messages about what went wrong nice to have. When not in dev mode then you want to actually display the system template for the particular error.
See https://github.com/ninjaframework/ninja/pull/324 for some of my ideas
Fixed. Proposed PR #627
It would be nice if exception message sent to BadRequest(String message) is not lost but logged and passed to 400badRequest.ftl.thml template.
I'm Ninja for just about 1 hour so far and still dont' understend rending enough but I suggest to change
.render()
(highlighted) inNinjaDefault.getBadRequestResult(Context, Exception)
to something like
.render(Message).render("exception", exception)
?Also if accepted, docs should be updated accordingly.