function section.__init__(self, scheme, co, c, s)
self.cref = { c, s }
- self.sref = { c, co[s] and co[s]['.type'] or s }
+ self.sref = { c, co and co[s] and co[s]['.type'] or s }
self.c = co
self.s = scheme
self.t = luci.uvl.TYPE_SECTION
function option.__init__(self, scheme, co, c, s, o)
self.cref = { c, s, o }
- self.sref = { c, co[s] and co[s]['.type'] or s, o }
+ self.sref = { c, co and co[s] and co[s]['.type'] or s, o }
self.c = co
self.s = scheme
self.t = luci.uvl.TYPE_OPTION
function enum.__init__(self, scheme, co, c, s, o, v)
self.cref = { c, s, o, v }
- self.sref = { c, co[s] and co[s]['.type'] or s, o, v }
+ self.sref = { c, co and co[s] and co[s]['.type'] or s, o, v }
self.c = co
self.s = scheme
self.t = luci.uvl.TYPE_ENUM
require("luci.util")
ERRCODES = {
- { 'UCILOAD', 'Unable to load config "%p"' },
+ { 'UCILOAD', 'Unable to load config "%p" (syntax error or file not found)' },
{ 'SCHEME', 'Error in scheme "%p":\n%c' },
{ 'CONFIG', 'Error in config "%p":\n%c' },