binaryage / binaryage/cljs-devtools
Custom formatter for ex-info thrown by cljs.spec
- Lingua principale
- Clojure
- Stelle
- 1.1k
- Fork
- 51
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
Currently it's quite tricky to get good output from cljs.spec. Reason being that the ex-info thrown includes the full spec commentary in ex-message. This includes the serialised val which failed. In my case this can fill the console many times over.
Alex Miller recommended catching these exceptions and using the ex-data to present the spec nicely. (e.g. don't print the ex-message to the console). This would be fine except it's difficult to catch all errors due to the nature of how UI code executes (react render loop, re-frame dispatch queue, callbacks)
How about automatically detecting and pretty formatting ex-info errors thrown by cljs.spec?
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.