summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <daniel.silverstone@codethink.co.uk>2012-05-16 14:22:50 +0100
committerDaniel Silverstone <daniel.silverstone@codethink.co.uk>2012-05-16 14:22:50 +0100
commit19e1d97fcb62464d9a5e86f325e19b8731a7fa74 (patch)
tree7c0901f6e1d7688d51faf14e0ffa3d8a452e4363
parenta82fbfa815f3412544c93eb0645a116d0bb73382 (diff)
downloadlace-19e1d97fcb62464d9a5e86f325e19b8731a7fa74.tar.gz
Include control type in error string
-rw-r--r--lib/lace/builtin.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lace/builtin.lua b/lib/lace/builtin.lua
index 74cd34b..d911eb2 100644
--- a/lib/lace/builtin.lua
+++ b/lib/lace/builtin.lua
@@ -176,7 +176,7 @@ function builtin.define(compcontext, define, name, controltype, ...)
local controlfn = _controlfn(compcontext, controltype)
if not controlfn then
- return compiler().error("Unknown control type", {3})
+ return compiler().error("Unknown control type: " .. controltype, {3})
end
local ctrltab, msg = controlfn(compcontext, controltype, ...)