projects
/
oweals
/
luci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa94931
)
* luci/libs: uvl: actually create error constants in luci.uvl.error
author
Jo-Philipp Wich
<jow@openwrt.org>
Wed, 27 Aug 2008 16:56:38 +0000
(16:56 +0000)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Wed, 27 Aug 2008 16:56:38 +0000
(16:56 +0000)
libs/uvl/luasrc/uvl/errors.lua
patch
|
blob
|
history
diff --git
a/libs/uvl/luasrc/uvl/errors.lua
b/libs/uvl/luasrc/uvl/errors.lua
index e29de400248a4742e550c03244c4a8ea15a6ae14..cf7d287dbfffb569f0cd4fec260ebc4bb57ca571 100644
(file)
--- a/
libs/uvl/luasrc/uvl/errors.lua
+++ b/
libs/uvl/luasrc/uvl/errors.lua
@@
-64,11
+64,13
@@
ERRCODES = {
{ 'DEP_BADENUM', 'In dependency check for enum value "%i":\n%c' }
}
--- build error constants
+-- build error constants
and instance constructors
for i, v in ipairs(ERRCODES) do
luci.uvl.errors[v[1]] = function(...)
return error(i, ...)
end
+
+ luci.uvl.errors['ERR_'..v[1]] = i
end