summaryrefslogtreecommitdiffhomepage
path: root/libs/uvl
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-03-18 22:39:48 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-03-18 22:39:48 +0000
commit0799c5f9ea70ddc5cc958cea74a6e066fea12f80 (patch)
tree7eaf1b7eb2509d418f3492050f8ba8d3491a6bcb /libs/uvl
parent30f7206c590f545df01fe328ac065ae91cb55372 (diff)
libs/uvl: convert luci.uvl.validation to new luci.uvl.error api
Diffstat (limited to 'libs/uvl')
-rw-r--r--libs/uvl/luasrc/uvl/validation.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/uvl/luasrc/uvl/validation.lua b/libs/uvl/luasrc/uvl/validation.lua
index 47eed6b1cd..25ac6dcaef 100644
--- a/libs/uvl/luasrc/uvl/validation.lua
+++ b/libs/uvl/luasrc/uvl/validation.lua
@@ -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