We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c400ef2 commit 5885ea4Copy full SHA for 5885ea4
kong/pdk/private/phases.lua
@@ -102,7 +102,7 @@ local function check_not_phase(rejected_phases)
102
103
local current_phase = ngx.ctx.KONG_PHASE
104
if not current_phase then
105
- error("no phase in ngx.ctx.KONG_PHASE")
+ error("no phase in ngx.ctx.KONG_PHASE", 3)
106
end
107
108
if band(current_phase, rejected_phases) == 0 then
@@ -115,7 +115,7 @@ local function check_not_phase(rejected_phases)
115
error(fmt("function cannot be called in %s phase (can be called in any " ..
116
"phases except: %s)",
117
current_phase_name,
118
- table.concat(rejected_phases_names, ", ")))
+ table.concat(rejected_phases_names, ", ")), 3)
119
120
121
0 commit comments