From 60b1efe22c787aba9e1ad6332196a7f687a1e21e Mon Sep 17 00:00:00 2001 From: Stefan Wiedemann Date: Tue, 7 Jan 2025 08:09:38 +0100 Subject: [PATCH] Update apisix/plugins/opa/helper.lua Co-authored-by: Ming Wen --- apisix/plugins/opa/helper.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apisix/plugins/opa/helper.lua b/apisix/plugins/opa/helper.lua index 59e3a8c35cca..b798d9ac97eb 100644 --- a/apisix/plugins/opa/helper.lua +++ b/apisix/plugins/opa/helper.lua @@ -37,7 +37,7 @@ end local function get_body_for_request() local original_body, err = core.request.get_body() if err ~= nil then - error("opa - failed to get request body: " .. err) + return nil, "failed to get request body: " .. err end if original_body == nil then return nil