libs/cbi: Forward errors (like syntactical errors) from CBI model parser to the user output
This commit is contained in:
parent
76f2e5ec1a
commit
3568e2ba50
1 changed files with 1 additions and 4 deletions
|
@ -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")
|
||||
|
||||
|
|
Loading…
Reference in a new issue