From d1796b2991d347d78cb02d95f09bc4c157b444cc Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 4 Nov 2008 16:11:25 +0000 Subject: * luci/libs/uvl: fix option dependency error handling in case of different non-critical reasons --- libs/uvl/luasrc/uvl.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'libs/uvl/luasrc/uvl.lua') diff --git a/libs/uvl/luasrc/uvl.lua b/libs/uvl/luasrc/uvl.lua index 3963a64be..3b3186eb2 100644 --- a/libs/uvl/luasrc/uvl.lua +++ b/libs/uvl/luasrc/uvl.lua @@ -295,9 +295,7 @@ function UVL._validate_option( self, option, nodeps ) if not nodeps then local ok, err = dependencies.check( self, option ) if not ok then - if not err:is_all(ERR.ERR_DEP_NOTEQUAL) and - not err:is_all(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 -- cgit v1.2.3