From 3568e2ba5097a5157c08f608e2bafa3d60c1f943 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Mon, 1 Sep 2008 19:51:37 +0000 Subject: libs/cbi: Forward errors (like syntactical errors) from CBI model parser to the user output --- libs/cbi/luasrc/cbi.lua | 5 +---- 1 file changed, 1 insertion(+), 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") -- cgit v1.2.3