Skip to content

Commit b24ce64

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

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
@@ -169,7 +169,7 @@ local function setclientcert(cosocket, cert, pkey)
169169
end
170170

171171
if type(pkey) ~= "cdata" then
172-
return nil, "bad client pkey type"
172+
return nil, "bad pkey arg: cdata expected, got " .. tostring(pkey)
173173
end
174174

175175
cosocket[SOCKET_CLIENT_CERT_INDEX] = cert

0 commit comments

Comments
 (0)