From dff2c1c915d63745cdfc594ae810cc92bd425cef Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 31 Dec 2018 00:27:49 -0800 Subject: Fixed bug where cached files would incorrectly appear to not have been found. --- nomsu_environment.moon | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'nomsu_environment.moon') diff --git a/nomsu_environment.moon b/nomsu_environment.moon index 6986b77..5d7a02c 100644 --- a/nomsu_environment.moon +++ b/nomsu_environment.moon @@ -182,6 +182,7 @@ nomsu_environment = Importer{ -- Need to check here to prevent re-running files if environment.FILE_CACHE[filename] import_to_1_from(environment, environment.FILE_CACHE[filename], prefix) + did_anything = true continue -- TODO: don't automatically use precompiled version? code = if optimization != 0 and Files.read(lua_filename) @@ -195,7 +196,7 @@ nomsu_environment = Importer{ did_anything = true break unless did_anything - error("File not found: #{path}", 0) + error("File not found: #{path}\n(searched in #{package.nomsupath})", 0) import_to_1_from(environment, mod, prefix) environment.FILE_CACHE[path] = mod _currently_running_files\remove! -- cgit v1.2.3