boot-clj / boot

Build tooling for Clojure.
https://boot-clj.github.io/
Eclipse Public License 1.0
1.75k stars 180 forks source link

Display ex-info data when omitting stacktrace #652

Closed seancorfield closed 6 years ago

seancorfield commented 6 years ago

If you throw with :boot.util/omit-stacktrace?, you only get the message displayed -- you lose any other data in the exception.

This change will show the ex-info data (without :boot.util/omit-stacktrace?) if anything beyond :line was present. :line is injected by boot.main and can be suppressed if no other data was added by the user.

Deraen commented 6 years ago

I think this is outside of intended omit-stacktrace use. Tasks that use the option can add all the necessary information to the message, or print addition data themselves.