Clojure-Intro-Course / babel-legacy

A project for developing middleware processing for Clojure error messages.
MIT License
10 stars 4 forks source link

Replace instances of manual de-structuring of error maps with (ex-triage) #151

Closed stanislowskij closed 1 week ago

stanislowskij commented 2 months ago

A handful of functions in processor.clj use giant let blocks with heavy de-structuring to parse relevant portions of error data, as returned by functions like (Throwable->map).

Consider using clojure.main/ex-triage instead to simplify the data we are passing around and make extracting values easier, as it seems to do a lot of the heavy error analysis for us.

stanislowskij commented 1 week ago

This now corresponds to https://github.com/Clojure-Intro-Course/babel/issues/61 in the migration repository.