From: Jo-Philipp Wich Date: Thu, 18 Mar 2010 22:40:57 +0000 (+0000) Subject: luci-0.9: merge r5871 X-Git-Tag: 0.9.0~40 X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fluci.git;a=commitdiff_plain;h=a32d60c3fb7a5c3c01fae28ff1234d522ce8bbb1 luci-0.9: merge r5871 --- diff --git a/libs/uvl/luasrc/uvl/validation.lua b/libs/uvl/luasrc/uvl/validation.lua index 47eed6b1c..25ac6dcae 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