Copilot commented on code in PR #14049:
URL: https://github.com/apache/apisix/pull/14049#discussion_r4292049677


##########
apisix/secret/vault.lua:
##########
@@ -110,7 +110,7 @@ local function get(conf, key)
 
     local ret = core.json.decode(res)
     if not ret or not ret.data then
-        return nil, "failed to decode result, res: " .. res
+        return nil, "failed to decode result, path: " .. main_key

Review Comment:
   TEST 8 and TEST 9 in `t/secret/vault.t` still assert the old response-body 
error (lines 213 and 238). With this change, both return `failed to decode 
result, path: /apisix-key/jack`, so their response assertions fail. Keep the 
sanitized provider error and replace both expectations with `failed to decode 
result, path: /apisix-key/jack\n`.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to