zhendongcmss commented on a change in pull request #5174:
URL: https://github.com/apache/apisix/pull/5174#discussion_r724631887
##########
File path: apisix/admin/init.lua
##########
@@ -278,12 +278,13 @@ local function post_reload_plugins()
local ok, err = check_token(api_ctx)
if not ok then
core.log.warn("failed to check token: ", err)
- core.response.exit(401)
+ core.response.exit(401, {error_msg="failed to check token"})
end
local success, err = events.post(reload_event, get_method(), ngx_time())
if not success then
core.response.exit(503, err)
+
Review comment:
Will remove it
--
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]