Skip to content
Browse files

Print message from with-profile exceptions. Fixes #764.

  • Loading branch information...
1 parent edfa527 commit fead243aac33219624fedde2becaa0707bdae14a @technomancy committed Sep 10, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/leiningen/with_profile.clj
3 src/leiningen/with_profile.clj
@@ -29,7 +29,8 @@ For a detailed description of profiles, see `lein help profiles`."
(catch Exception e
(main/info (format "Error encountered performing task '%s' with profile(s): '%s'"
task-name profile-group))
- (when-not (:exit-code (ex-data e))
+ (if (and (:exit-code (ex-data e)) (not main/*debug*))
+ (main/info (.getMessage e))
(.printStackTrace e))
(swap! failures inc)))))
(when (pos? @failures)

0 comments on commit fead243

Please sign in to comment.
Something went wrong with that request. Please try again.