mirror of
https://github.com/docker/compose.git
synced 2025-07-29 16:44:20 +02:00
Include required but missing VAR name and assignment in interpolation error message.
Error message format is now e.g.: ERROR: Missing mandatory value for "environment" option interpolating ['MYENV=${MYVAR:?}'] in service "myservice": Fixed #6587. Signed-off-by: Brett Randall <javabrett@gmail.com>
This commit is contained in:
parent
e806520dc3
commit
fb4d5aa7e6
@ -64,12 +64,12 @@ def interpolate_value(name, config_key, value, section, interpolator):
|
|||||||
string=e.string))
|
string=e.string))
|
||||||
except UnsetRequiredSubstitution as e:
|
except UnsetRequiredSubstitution as e:
|
||||||
raise ConfigurationError(
|
raise ConfigurationError(
|
||||||
'Missing mandatory value for "{config_key}" option in {section} "{name}": {err}'.format(
|
'Missing mandatory value for "{config_key}" option interpolating {value} '
|
||||||
config_key=config_key,
|
'in {section} "{name}": {err}'.format(config_key=config_key,
|
||||||
|
value=value,
|
||||||
name=name,
|
name=name,
|
||||||
section=section,
|
section=section,
|
||||||
err=e.err
|
err=e.err)
|
||||||
)
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user