Fairly straight forward. It became necessary to wrap `Plugin.Err` with a type
which implements `encoding.MarshalText` in order to have that field rendered
properly in the `docker info -f '{{json}}'` output.
Since I changed the type somewhat I also added a unit test for `formatInfo`.
Signed-off-by: Ian Campbell <ijc@docker.com>
2 lines
74 B
Plaintext
2 lines
74 B
Plaintext
WARNING: Plugin "/path/to/docker-badplugin" is not valid: something wrong
|