aboutsummaryrefslogtreecommitdiff
path: root/nomsu_environment.lua
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2018-12-31 00:27:49 -0800
committerBruce Hill <bruce@bruce-hill.com>2018-12-31 00:28:08 -0800
commitdff2c1c915d63745cdfc594ae810cc92bd425cef (patch)
tree8bf78cfce772584eaf6deebac4f305f11dc1b6fb /nomsu_environment.lua
parentfaaf5311c8d94b3cb0ccfbecf7b034e529c6e7b7 (diff)
Fixed bug where cached files would incorrectly appear to not have been
found.
Diffstat (limited to 'nomsu_environment.lua')
-rw-r--r--nomsu_environment.lua3
1 files changed, 2 insertions, 1 deletions
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