Skip to content

Commit

Permalink
fix(pdk.service): corrects the error message in `pdk.service.set_retr…
Browse files Browse the repository at this point in the history
…ies`

when the argument provided is invalid

FTI-6222
  • Loading branch information
liverpool8056 committed Sep 12, 2024
1 parent c937edc commit 70ffdff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions changelog/unreleased/kong/fix-pdk-service-errmsg.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
message: "**PDK**: fix the error message in kong.pdk.service.set_retries"
scope: PDK
type: bugfix
2 changes: 1 addition & 1 deletion kong/pdk/service.lua
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ local function new()
error("retries must be an integer", 2)
end
if retries < 0 or retries > 32767 then
error("port must be an integer between 0 and 32767: given " .. retries, 2)
error("retries must be an integer between 0 and 32767: given " .. retries, 2)
end

local ctx = ngx.ctx
Expand Down

0 comments on commit 70ffdff

Please sign in to comment.