1
0
mirror of https://github.com/janet-lang/janet synced 2024-11-18 22:54:49 +00:00

Exit janet if import-rules fails.

This commit is contained in:
Calvin Rose 2019-08-03 14:15:27 -05:00
parent 6caf8d3d56
commit 2b295a5459

View File

@ -170,7 +170,7 @@
(def currenv (proto-flatten @{} (fiber/getenv (fiber/current))))
(loop [k :keys currenv :when (keyword? k)]
(put env k (currenv k)))
(dofile path :env env)
(dofile path :env env :exit true)
(when-let [rules (env :rules)] (merge-into (getrules) rules)))
#