Render data from unhandled ex-info exceptions#785
Render data from unhandled ex-info exceptions#785emlyn wants to merge 1 commit intonextjournal:mainfrom
Conversation
|
I've tried this but I don't see the ex-data in the viewer, does this work for you? Can you make it so it works with |
|
Sorry, I should have tested this before opening a PR... |
|
Yep, clerk catches the exception and rethrows it after running it through clerk/src/nextjournal/clerk/eval.clj Lines 168 to 172 in 2aa4bb1 Since ex-data can contain things that can't be serialized or contain too much data to send over the wire, it's run through clerk's presentation. |
If something like

(throw (ex-info "message" {:some "data"}))goes unhandled, it would be useful to be able to see the data in the error message. Currntly that is not visible: