projects
/
project
/
luci.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* luci/libs/uvl: more sensitive checking of error reasons in evaluation of option...
[project/luci.git]
/
libs
/
uvl
/
luasrc
/
uvl.lua
diff --git
a/libs/uvl/luasrc/uvl.lua
b/libs/uvl/luasrc/uvl.lua
index
1e9bea4
..
3963a64
100644
(file)
--- 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
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()
then
option:error(err)
return false, option:errors()