diff --git a/src/babashka/main.clj b/src/babashka/main.clj index e5bd9b4b..6b19dc77 100644 --- a/src/babashka/main.clj +++ b/src/babashka/main.clj @@ -1049,7 +1049,9 @@ Use bb run --help to show this help output. (catch java.lang.RuntimeException e (if (re-find #"No dispatch macro for: \"" (.getMessage e)) (throw (ex-info "Invalid regex literal found in EDN config, use re-pattern instead" {})) - (throw e))))) + (do (binding [*out* *err*] + (println "Error during loading bb.edn:")) + (throw e)))))) (defn main [& args] (let [[args global-opts] (parse-global-opts args)