Skip to content

Commit 1a45edb

Browse files
Update lib/resty/core/socket.lua
Co-authored-by: lijunlong <lijunlong@openresty.com>
1 parent 00361a0 commit 1a45edb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/resty/core/socket.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ local function setclientcert(cosocket, cert, pkey)
165165
end
166166

167167
if type(cert) ~= "cdata" then
168-
return nil, "bad client cert type"
168+
return nil, "bad cert arg: cdata expected, got " .. type(cert)
169169
end
170170

171171
if type(pkey) ~= "cdata" then

0 commit comments

Comments
 (0)