diff options
author | Daniel Silverstone <dsilvers@digital-scurf.org> | 2012-05-13 21:44:26 +0100 |
---|---|---|
committer | Daniel Silverstone <dsilvers@digital-scurf.org> | 2012-05-13 21:44:26 +0100 |
commit | 9daf22f7aa8b83656388454ae447f59fc3442e2d (patch) | |
tree | 810b68a4c2a18d72704a795b724df594f5cf2d4c | |
parent | 0929a24c6799d22b45959089430d6b7a21a7c064 (diff) | |
download | lace-9daf22f7aa8b83656388454ae447f59fc3442e2d.tar.gz |
Return number when erroring on redefinition
-rw-r--r-- | lib/lace/engine.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lace/engine.lua b/lib/lace/engine.lua index 5b3d845..3fe6143 100644 --- a/lib/lace/engine.lua +++ b/lib/lace/engine.lua @@ -21,7 +21,7 @@ local function set_define(exec_context, name, defn) local dlace = _dlace(exec_context) dlace.defs = dlace.defs or {} if dlace.defs[name] then - return false, _error("Attempted to redefine " .. name) + return false, _error("Attempted to redefine " .. name, {2}) end dlace.defs[name] = defn return true |