Mark bb.edn load exception (#1378)
* Mark bb.edn load exception * print to stderr * print with binding
This commit is contained in:
parent
8352448611
commit
0684119000
1 changed files with 3 additions and 1 deletions
|
|
@ -1049,7 +1049,9 @@ Use bb run --help to show this help output.
|
||||||
(catch java.lang.RuntimeException e
|
(catch java.lang.RuntimeException e
|
||||||
(if (re-find #"No dispatch macro for: \"" (.getMessage 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 (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]
|
(defn main [& args]
|
||||||
(let [[args global-opts] (parse-global-opts args)
|
(let [[args global-opts] (parse-global-opts args)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue