libs/uvl: convert luci.uvl.validation to new luci.uvl.error api
This commit is contained in:
parent
30f7206c59
commit
0799c5f9ea
1 changed files with 2 additions and 2 deletions
|
@ -17,7 +17,7 @@ $Id$
|
|||
local os = require "os"
|
||||
local fs = require "nixio.fs"
|
||||
local sys = require "luci.sys"
|
||||
local ERR = require "luci.uvl.errors"
|
||||
local ERR = require "luci.uvl.errors".error
|
||||
|
||||
local ipairs, unpack, type, tostring = ipairs, unpack, type, tostring
|
||||
|
||||
|
@ -63,7 +63,7 @@ function check( self, object )
|
|||
end
|
||||
|
||||
if not ok then
|
||||
return false, ERR.SME_ERRVAL(object, {tostring(val), err})
|
||||
return false, ERR('SME_ERRVAL', object, {tostring(val), err})
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue