yogthos / clojure-error-message-catalog

a catalog of common Clojure errors and their meaning
448 stars 24 forks source link

Integrate via lein-plugin/boot? #21

Open victorb opened 8 years ago

victorb commented 8 years ago

I'm a complete beginner with Clojure (mainly focused on Clojurescript) so maybe I'm thinking completely wrong. I do appreciate this initiative since error message in Clojure (coming from a non-java background) is very foreign and hard to parse.

But, would it be possible to hook into something in lein/boot when an error happen and automatically link to something in this catalog? That would make usage of this so much easier.

yogthos commented 8 years ago

Some kind of lein middleware is definitely one of the ideas being considered. It could try to match the exception message with one of the recorded ones and add a link or something. First, we need to collect a few more errors though to have a minimum knowledge base.