File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ local function validate_configuration(req_body, collect_all_errors)
171171 local new_conf_version = req_body [conf_version_key ]
172172 if new_conf_version and type (new_conf_version ) ~= " number" then
173173 if not collect_all_errors then
174- return false , config_version_key .. " must be a number"
174+ return false , conf_version_key .. " must be a number"
175175 end
176176 validation_results .valid = false
177177 table_insert (validation_results .errors , {
@@ -309,11 +309,10 @@ local function update(ctx)
309309
310310 local config , err = get_config ()
311311 if err and err ~= NOT_FOUND_ERR then
312- core .log .error (" failed to get config from shared dict: " , err )
313- return core .response .exit (500 , {
314- error_msg = " failed to get config from shared dict: " .. err
315- })
316- end
312+ core .log .error (" failed to get config from shared dict: " , err )
313+ return core .response .exit (500 , {
314+ error_msg = " failed to get config from shared dict: " .. err
315+ })
317316 end
318317
319318 -- if the client passes in the same digest, the configuration is not updated
You can’t perform that action at this time.
0 commit comments