Skip to content

Commit

Permalink
err msg
Browse files Browse the repository at this point in the history
  • Loading branch information
chronolaw committed Jan 14, 2025
1 parent dbd9154 commit f70cc36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kong/clustering/rpc/concentrator.lua
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ function _M:process_one_request(target_id, reply_to, payload, collection)
if type(payload) ~= "table" then
local res, err = self:_enqueue_rpc_response(
reply_to,
new_error(nil, jsonrpc.INVALID_REQUEST, "Invalid Request"),
new_error(nil, jsonrpc.INVALID_REQUEST, "not an valid object"),
collection)
if not res then
ngx_log(ngx_WARN, "[rpc] unable to enqueue RPC error: ", err)
Expand Down Expand Up @@ -237,7 +237,7 @@ function _M:_event_loop(lconn)
if isempty(payload) then
local res, err = self:_enqueue_rpc_response(
reply_to,
new_error(nil, jsonrpc.INVALID_REQUEST, "Invalid Request"))
new_error(nil, jsonrpc.INVALID_REQUEST, "empty batch array"))
if not res then
ngx_log(ngx_WARN, "[rpc] unable to enqueue RPC error: ", err)
end
Expand Down

0 comments on commit f70cc36

Please sign in to comment.