marcuswhybrow / ray-peat-rodeo

Ray Peat interviews transcribed & augmented
https://raypeat.rodeo/
7 stars 1 forks source link

On panic replace build with panic data to show in devserver, but only during development #62

Open marcuswhybrow opened 6 months ago

marcuswhybrow commented 6 months ago

A panic during development is annoying. The page you're looking at just stops refreshing. Sometimes you don't notice. You have to pull up the devserver to check if there was a panic everytime a page stop refreshing.

If there's a panic, I want to see it in the browser. The devserver we're using is devd. Maybe that can project panics into the browser?

If not, one has to capture errors and produce an output to give to devd in usercode.

marcuswhybrow commented 6 months ago

Okay, so go has recover()