MichaelDrogalis / dire

Erlang-style supervisor error handling for Clojure
483 stars 19 forks source link

Add wrap-hooks, a version of post-hook that can access the function arguments #28

Closed MatthewDarling closed 9 years ago

MatthewDarling commented 9 years ago

The name is a bit different, but this is an implementation of the behaviour from #26.

It seems to work, at least well enough for my use case - checking the output of a function and, if it fails some predicate, logging the result and the arguments.

Because I'm using clojure-mode 3.0.1, the indenting of multi-arity functions is a bit different. Sorry about that.

MichaelDrogalis commented 9 years ago

Excellent, thank you! Will cut a release momentarily.

MichaelDrogalis commented 9 years ago

Out in 0.5.3. Thanks again!