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.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'nomsu_environment.lua') diff --git a/nomsu_environment.lua b/nomsu_environment.lua index 71d7d06..ca22389 100644 --- a/nomsu_environment.lua +++ b/nomsu_environment.lua @@ -328,6 +328,7 @@ local nomsu_environment = Importer({ local lua_filename = filename:gsub("%.nom$", ".lua") if environment.FILE_CACHE[filename] then import_to_1_from(environment, environment.FILE_CACHE[filename], prefix) + did_anything = true _continue_1 = true break end @@ -356,7 +357,7 @@ local nomsu_environment = Importer({ end end if not (did_anything) then - error("File not found: " .. tostring(path), 0) + error("File not found: " .. tostring(path) .. "\n(searched in " .. tostring(package.nomsupath) .. ")", 0) end import_to_1_from(environment, mod, prefix) environment.FILE_CACHE[path] = mod -- cgit v1.2.3