Skip to content

Commit

Permalink
err msg
Browse files Browse the repository at this point in the history
  • Loading branch information
chronolaw committed Jan 5, 2025
1 parent b9bc9bb commit 226792b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kong/clustering/rpc/socket.lua
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ end
function _M:process_rpc_msg(payload, collection)
if type(payload) ~= "table" then
local res, err = self:push_response(
new_error(nil, jsonrpc.INVALID_REQUEST, "Invalid Request"),
new_error(nil, jsonrpc.INVALID_REQUEST, "not an valid object"),
collection)
if not res then
return nil, err
Expand Down Expand Up @@ -267,7 +267,7 @@ function _M:start()
-- rpc call with an empty Array
if isempty(payload) then
local res, err = self:push_response(
new_error(nil, jsonrpc.INVALID_REQUEST, "Invalid Request"))
new_error(nil, jsonrpc.INVALID_REQUEST, "empty batch array"))
if not res then
return nil, err
end
Expand Down

0 comments on commit 226792b

Please sign in to comment.