Fixes
h3rald h3rald@h3rald.com
Wed, 30 Dec 2020 22:55:41 +0100
1 files changed,
2 insertions(+),
2 deletions(-)
jump to
M
lib/min_lang.nim
→
lib/min_lang.nim
@@ -112,8 +112,6 @@ if not file.endsWith(".min"):
file = file & ".min" info("[require] File: ", file) let f = simplifyPath(i.filename, file) - if not f.fileExists: - raiseInvalid("File '$1' does not exist." % file) if MINCOMPILED: if COMPILEDMINFILES.hasKey(f): var i2 = i.copy(f)@@ -125,6 +123,8 @@ for key, value in i2.scope.symbols.pairs:
mdl.scope.symbols[key] = value i.push(mdl) else: + if not f.fileExists: + raiseInvalid("File '$1' does not exist." % file) i.push i.require(f) def.symbol("read") do (i: In):