Skip to content

Commit

Permalink
improve docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
flrgh committed Dec 13, 2024
1 parent 281ce24 commit 35abed3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kong/db/schema/others/declarative_config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -367,11 +367,13 @@ local function add_error(errs, parent_entity, parent_idx, entity, entity_idx, er
errs[parent_entity][parent_idx] = errs[parent_entity][parent_idx] or {}
errs[parent_entity][parent_idx][entity] = errs[parent_entity][parent_idx][entity] or {}

-- e.g. errs["upstreams"][5]["targets"]
-- e.g. errs["upstreams"][5]["targets"][2]
errs[parent_entity][parent_idx][entity][entity_idx] = err

else
errs[entity] = errs[entity] or {}

-- e.g. errs["consumers"][3]
errs[entity][entity_idx] = err
end
end
Expand Down

0 comments on commit 35abed3

Please sign in to comment.