BetterErrors / better_errors

Better error page for Rack apps
MIT License
6.88k stars 435 forks source link

Show `better_errors` even when using Turbo #526

Open zspencer opened 8 months ago

zspencer commented 8 months ago

I've enjoyed using Turbo in my Ruby projects. What I haven't loved is the opaque Content Missing error that pops up when a Turbo-wrapped request throws an error.

Sure, I can right-click and dig into the request panel on my developer tools; and I do...

But wouldn't it be nice if instead of all that nonsense; errors would render directly to the screen; so I can read them with my lazy eyeballs rather than having to use my clicky-clicky-fingers?

Anway, this adds a header to the better errors layout which tells turbo exactly where to shove the content of this error page.

Right up our eyeballs.

jjf21 commented 4 months ago

This project has been dropped ? This gem is now unusable without Turbo errors !

iJackUA commented 4 months ago

Dear maintainers, can this PR be merged please? Without this little addition on modern Rails + Hotwire/Turbo reloading this great gem just "does nothing".