mirror of
https://github.com/janet-lang/janet
synced 2026-11-10 15:14:27 +00:00
Exit janet if import-rules fails.
This commit is contained in:
1 parent
6caf8d3d56
commit
2b295a5459
1 file changed
+1
-1
+1
-1
@@ -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)))
|
||||
|
||||
#
|
||||
|
||||
Reference in new issue
Block a user