libs/cbi: Forward errors (like syntactical errors) from CBI model parser to the user output

This commit is contained in:
Steven Barth 2008-09-01 19:51:37 +00:00
parent 76f2e5ec1a
commit 3568e2ba50

View file

@ -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")