X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fluci.git;a=blobdiff_plain;f=libs%2Fuvl%2Fluasrc%2Fuvl.lua;h=3b3186eb25758f7f087945a1ddc8cd8ef707d399;hp=1e9bea4a46702d41111591d80d0668bf04977899;hb=d1796b2991d347d78cb02d95f09bc4c157b444cc;hpb=4219ec17548d4bb1620b16423dea844af44f93bc diff --git a/libs/uvl/luasrc/uvl.lua b/libs/uvl/luasrc/uvl.lua index 1e9bea4a4..3b3186eb2 100644 --- a/libs/uvl/luasrc/uvl.lua +++ b/libs/uvl/luasrc/uvl.lua @@ -295,10 +295,7 @@ 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) - then + if not err:is_all(ERR.ERR_DEP_NOTEQUAL,ERR.ERR_DEP_NOVALUE) then option:error(err) return false, option:errors() else