DockerCLI/cli/config
Sebastiaan van Stijn d96f8b7f91
cli/config: improve error when failing to parse config file
The format had a stray colon and space included. While fixing that, also
updating the error message to clarify the error happened while parsing
the file (not so much "loading" it).

Before:

    WARNING: Error loading config file: /root/.docker/config.json: : json: cannot unmarshal bool into Go struct field ConfigFile.features of type string

After:

    WARNING: Error parsing config file (/root/.docker/config.json): json: cannot unmarshal bool into Go struct field ConfigFile.features of type string

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2024-10-21 18:26:02 +02:00
..
configfile test spring-cleaning 2024-07-04 01:35:12 +02:00
credentials filestore: don't print warning multiple times 2024-08-14 19:48:08 +01:00
types Remove docker api dependency from cli/config 2019-01-31 21:25:43 +00:00
config.go cli/config: improve error when failing to parse config file 2024-10-21 18:26:02 +02:00
config_test.go cli/config: improve error when failing to parse config file 2024-10-21 18:26:02 +02:00