framesurge / perseus

A state-driven web development framework for Rust with full support for server-side rendering and static generation.
https://framesurge.sh/perseus/en-US
MIT License
2.15k stars 89 forks source link

console_error_panic_hook #306

Closed smessmer closed 7 months ago

smessmer commented 1 year ago

This issue is requesting an enhancement to Perseus. Details of the scope will be available in issue labels. The user described the problem related to this request as follows:

Panics don't display a stacktrace in the browser console.

The user described the issue as follows:

Adding the following to my main solves it, but it would be nice if perseus did that automatically

    #[cfg(client)]
    console_error_panic_hook::set_once();
Tribble internal data dHJpYmJsZS1yZXBvcnRlZCxDLWVuaGFuY2VtZW50
arctic-hen7 commented 1 year ago

Well that's weird: Perseus has extensive internal panic handling, including support for custom error views when panics occur. Are you using the default features?

arctic-hen7 commented 7 months ago

@smessmer I'm closing this due to inactivity for now, but let me know if this is still an issue for you.