From 5a2122a0c57c0f665fce2b4961e079e73addb0a0 Mon Sep 17 00:00:00 2001 From: Bart Van Der Meerssche Date: Sat, 5 Mar 2011 10:09:07 +0100 Subject: [PATCH] [httpclient] name clash: error is alread used by the basic library in Lua --- .../package/luci/libs/httpclient/luasrc/httpclient.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mote/v2/openwrt/package/luci/libs/httpclient/luasrc/httpclient.lua b/mote/v2/openwrt/package/luci/libs/httpclient/luasrc/httpclient.lua index 0a0e78c..3db222c 100644 --- a/mote/v2/openwrt/package/luci/libs/httpclient/luasrc/httpclient.lua +++ b/mote/v2/openwrt/package/luci/libs/httpclient/luasrc/httpclient.lua @@ -146,9 +146,9 @@ function request_raw(uri, options) end sock = tls:create(sock) - local stat, code, error = sock:connect() + local stat, code, err = sock:connect() if not stat then - return stat, code, error + return stat, code, err end end @@ -216,11 +216,11 @@ function request_raw(uri, options) -- Create source and fetch response local linesrc = sock:linesource() - local line, code, error = linesrc() + local line, code, err = linesrc() if not line then sock:close() - return nil, code, error + return nil, code, err end local protocol, status, msg = line:match("^([%w./]+) ([0-9]+) (.*)")