Skip to content

Commit

Permalink
chore(wasm): return early on error in init_worker (#11248)
Browse files Browse the repository at this point in the history
This makes wasm's init_worker error-handling conformant with the rest of
the logic in Kong.init_worker().
  • Loading branch information
flrgh authored Jul 19, 2023
1 parent 6db62fc commit db0158e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kong/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -870,6 +870,7 @@ function Kong.init_worker()
if not ok then
err = "wasm nginx worker initialization failed: " .. tostring(err)
stash_init_worker_error(err)
return
end
end

Expand Down

1 comment on commit db0158e

@khcp-gha-bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bazel Build

Docker image available kong/kong:db0158e079786109787d0488b18f9a30f30ea887
Artifacts available https://github.com/Kong/kong/actions/runs/5604378900

Please sign in to comment.