Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More useful exception page #7785

Open
He-Pin opened this issue Sep 2, 2017 · 3 comments
Open

More useful exception page #7785

He-Pin opened this issue Sep 2, 2017 · 3 comments

Comments

@He-Pin
Copy link
Contributor

He-Pin commented Sep 2, 2017

image

like this one have not gaven the root cause,

So I propose how about we show both the nearest exception , the root cause and clasp other exceptions between them?

like:

nearest exception 
....
clasped ,click to expand 
....

root cause
@He-Pin
Copy link
Contributor Author

He-Pin commented Sep 2, 2017

the root cause:playframework/play-json#100

@He-Pin
Copy link
Contributor Author

He-Pin commented Sep 2, 2017

https://github.com/playframework/playframework/blob/master/framework/src/play/src/main/scala/views/defaultpages/devError.scala.html

and the

def throwableToUsefulException(sourceMapper: Option[SourceMapper], isProd: Boolean, throwable: Throwable): UsefulException

play.api.http.HttpErrorHandlerExceptions#throwableToUsefulException

both need a little change,otherwise , useful is a little :)

@richdougherty
Copy link
Member

Sounds like a good idea!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants