aboutsummaryrefslogtreecommitdiff
path: root/nomsu_compiler.lua
diff options
context:
space:
mode:
authorBruce Hill <bitbucket@bruce-hill.com>2018-07-24 15:08:44 -0700
committerBruce Hill <bitbucket@bruce-hill.com>2018-07-24 15:09:55 -0700
commitb6c99c56a1f49a9230b65200a5a016173038857c (patch)
treebfe893f8c746fc0ab6f8a84e93eb42bf762b3b63 /nomsu_compiler.lua
parent3cf97066be82a3a3405246b7c915bac8773e6004 (diff)
Updated package.nomsupath behavior to first search the installed
locations, *then* search the current directory. This makes the system `nomsu` run properly, even if the local directory has a broken file that has the same name as a nomsu file.
Diffstat (limited to 'nomsu_compiler.lua')
-rw-r--r--nomsu_compiler.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/nomsu_compiler.lua b/nomsu_compiler.lua
index 42b1a1d..56bd1e8 100644
--- a/nomsu_compiler.lua
+++ b/nomsu_compiler.lua
@@ -158,7 +158,7 @@ local NomsuCompiler = setmetatable({ }, {
end
})
do
- NomsuCompiler.NOMSU_COMPILER_VERSION = 4
+ NomsuCompiler.NOMSU_COMPILER_VERSION = 5
NomsuCompiler.NOMSU_SYNTAX_VERSION = Parser.version
NomsuCompiler._ENV = NomsuCompiler
NomsuCompiler.nomsu = NomsuCompiler
@@ -454,7 +454,7 @@ do
if not (ran_lua) then
local file = Files.read(filename)
if not file then
- error("File does not exist: " .. tostring(filename), 0)
+ error("Tried to run file that does not exist: " .. tostring(filename))
end
ret = self:run(file, Source(filename, 1, #file))
end