Skip to content

Commit

Permalink
fix(plugins): tostring to handl nil as well
Browse files Browse the repository at this point in the history
the error object may be nil, in which case the concatenation fails without an explicit tostring call
  • Loading branch information
Tieske authored Oct 9, 2024
1 parent 3a3b6ac commit 35af1ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kong/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -965,7 +965,7 @@ function Kong.init_worker()
if errors then
for _, e in ipairs(errors) do
local err = 'failed to execute the "init_worker" ' ..
'handler for plugin "' .. e.plugin ..'": ' .. e.err
'handler for plugin "' .. e.plugin ..'": ' .. tostring(e.err)
stash_init_worker_error(err)
end
end
Expand Down

0 comments on commit 35af1ad

Please sign in to comment.