X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=libs%2Fuvl%2Fluasrc%2Fuvl.lua;fp=libs%2Fuvl%2Fluasrc%2Fuvl.lua;h=3963a64be3f8d2f867da05c2e4e4640236786d14;hp=1e9bea4a46702d41111591d80d0668bf04977899;hb=8d75d524f99be11e722ae05bd714450388659e4c;hpb=4219ec17548d4bb1620b16423dea844af44f93bc diff --git a/libs/uvl/luasrc/uvl.lua b/libs/uvl/luasrc/uvl.lua index 1e9bea4a4..3963a64be 100644 --- a/libs/uvl/luasrc/uvl.lua +++ b/libs/uvl/luasrc/uvl.lua @@ -295,9 +295,8 @@ function UVL._validate_option( self, option, nodeps ) if not nodeps then local ok, err = dependencies.check( self, option ) if not ok then - -- XXX: maybe this needs to be more specific - if not err:is(ERR.ERR_DEP_NOTEQUAL) and - not err:is(ERR.ERR_DEP_NOVALUE) + if not err:is_all(ERR.ERR_DEP_NOTEQUAL) and + not err:is_all(ERR.ERR_DEP_NOVALUE) then option:error(err) return false, option:errors()