* luci/libs/uvl: fix error handling of OPT_INVVALUE too
[project/luci.git] / libs / uvl / luasrc / uvl.lua
index 007a37d..b1d4810 100644 (file)
@@ -321,7 +321,7 @@ function UVL._validate_option( self, option, nodeps )
                                        for i, v in ipairs(val) do
                                                if not self.datatypes[dt]( v ) then
                                                        return false, option:error(
-                                                               ERR.OPT_INVVALUE(option, dt)
+                                                               ERR.OPT_INVVALUE(option, { v, dt })
                                                        )
                                                end
                                        end