diff options
author | Steven Barth <steven@midlink.org> | 2008-09-01 19:51:37 +0000 |
---|---|---|
committer | Steven Barth <steven@midlink.org> | 2008-09-01 19:51:37 +0000 |
commit | 3568e2ba5097a5157c08f608e2bafa3d60c1f943 (patch) | |
tree | 36bf1a664f8a512e721f52c00f1a32a990b271b7 | |
parent | 76f2e5ec1a5fb8ab6c6c575434cb873e5db5d7cb (diff) |
libs/cbi: Forward errors (like syntactical errors) from CBI model parser to the user output
-rw-r--r-- | libs/cbi/luasrc/cbi.lua | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libs/cbi/luasrc/cbi.lua b/libs/cbi/luasrc/cbi.lua index 5b05c4608..ebc23e095 100644 --- 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") |