Fix build section without context.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
parent
740329a131
commit
532dffd688
4 changed files with 22 additions and 4 deletions
|
|
@ -253,10 +253,9 @@ def handle_generic_service_error(error, path):
|
|||
msg_format = "{path} contains an invalid type, it should be {msg}"
|
||||
error_msg = _parse_valid_types_from_validator(error.validator_value)
|
||||
|
||||
# TODO: no test case for this branch, there are no config options
|
||||
# which exercise this branch
|
||||
elif error.validator == 'required':
|
||||
msg_format = "{path} is invalid, {msg}"
|
||||
error_msg = ", ".join(error.validator_value)
|
||||
msg_format = "{path} is invalid, {msg} is required."
|
||||
|
||||
elif error.validator == 'dependencies':
|
||||
config_key = list(error.validator_value.keys())[0]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue