Skip to content

Commit 7bbfdf0

Browse files
committed
fix pkey error message
1 parent b24ce64 commit 7bbfdf0

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 pkey arg: cdata expected, got " .. tostring(pkey)
172+
return nil, "bad pkey arg: cdata expected, got " .. type(pkey)
173173
end
174174

175175
cosocket[SOCKET_CLIENT_CERT_INDEX] = cert

0 commit comments

Comments
 (0)