chore: correct typo in the error msg (#4214)

Signed-off-by: spacewander <spacewanderlzx@gmail.com>
This commit is contained in:
罗泽轩 2021-05-11 19:02:45 +08:00 committed by GitHub
parent 85f5bb6864
commit 692ccae1fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,7 @@ function _M.put(id, conf)
local key = "/global_rules/" .. id
local ok, err = utils.inject_conf_with_prev_conf("route", key, conf)
local ok, err = utils.inject_conf_with_prev_conf("global_rule", key, conf)
if not ok then
return 500, {error_msg = err}
end

View File

@ -68,7 +68,7 @@ function _M.put(id, conf)
local key = "/plugin_configs/" .. id
local ok, err = utils.inject_conf_with_prev_conf("route", key, conf)
local ok, err = utils.inject_conf_with_prev_conf("plugin_config", key, conf)
if not ok then
return 500, {error_msg = err}
end