Mark bb.edn load exception (#1378)

* Mark bb.edn load exception

* print to stderr

* print with binding
This commit is contained in:
Rahuλ Dé 2022-09-28 19:18:35 +05:30 committed by GitHub
parent 8352448611
commit 0684119000
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)