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:
parent
6caf8d3d56
commit
2b295a5459
@ -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)))
|
||||
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user