From b15c5666d1f87cb818fa08898cf9628bcfc652cb Mon Sep 17 00:00:00 2001 From: Phil Hagelberg Date: Thu, 6 Feb 2014 11:37:00 -0800 Subject: [PATCH] Propagate eval-in-project exit code in run task to lein's process. --- src/leiningen/run.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/leiningen/run.clj b/src/leiningen/run.clj index cd74f61ff..63bddedff 100644 --- a/src/leiningen/run.clj +++ b/src/leiningen/run.clj @@ -86,7 +86,7 @@ [project given & args] (try (eval/eval-in-project project (run-form given args)) (catch clojure.lang.ExceptionInfo e - (main/abort)))) + (main/exit (:exit-code (ex-data e) 1))))) (defn ^{:help-arglists '([]) :no-project-needed true} run "Run the project's -main function.