livingsocial / lein-dependency-check

A leiningen plugin for detecting vulnerable project dependencies
MIT License
33 stars 14 forks source link

Pretty-print dependency information before throwing errors #24

Closed vemv closed 5 years ago

vemv commented 5 years ago

Hi!

I use the Lein checker with:

:dependency-check {:log false :throw true}

When it throws errors, the ex-info can be a humongous value, and not an easy one to pprint after-the-fact since it will have #objects.

So I propose to pprint the info before the throwing.

One also could go one step beyond, and throw a thin, almost-empty error, for not duplicating the already-pprinted info. I doubt it would break anyone's workflow since it would be rare to programatically interact with Lein output.

Cheers - Victor

dgknght commented 5 years ago

Thanks @vemv, this has been deployed to clojars.