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:
76f2e5e
)
libs/cbi: Forward errors (like syntactical errors) from CBI model parser to the user...
author
Steven Barth
<steven@midlink.org>
Mon, 1 Sep 2008 19:51:37 +0000
(19:51 +0000)
committer
Steven Barth
<steven@midlink.org>
Mon, 1 Sep 2008 19:51:37 +0000
(19:51 +0000)
libs/cbi/luasrc/cbi.lua
patch
|
blob
|
history
diff --git
a/libs/cbi/luasrc/cbi.lua
b/libs/cbi/luasrc/cbi.lua
index 5b05c4608330dd9c3b7d3ee5b096b1e8d38e1073..ebc23e0955dbf53d4fe390098ce07923013be015 100644
(file)
--- a/
libs/cbi/luasrc/cbi.lua
+++ b/
libs/cbi/luasrc/cbi.lua
@@
-53,10
+53,7
@@
function load(cbimap, ...)
local cbidir = luci.util.libpath() .. "/model/cbi/"
local func, err = loadfile(cbidir..cbimap..".lua")
-
- if not func then
- return nil
- end
+ assert(func, err)
luci.i18n.loadc("cbi")