Closed cswinter closed 3 years ago
Arguably errors would actually be slightly better by displaying just the message and not the error code, which might not be of interest to users and doesn't convey much additional information. But not sure if docker consistently returns good error messages, maybe sometimes it's good to have the status code as well.
Another option would be to display just the message, except when it's an empty string in which case it shows the error code.
What did you implement:
Small change to the
Display
implementation ofError
that includes themessage
returned by docker. IMO this should be part of the display string since it makes errors much more informative. E.g., instead ofDocker Error: 404 Not Found
an error would now be displayed asDocker Error: 404 Not Found: No such container: containername
Closes: https://github.com/softprops/shiplift/issues/288
How did you verify your change:
manually tested it on one API request 😄
What (if anything) would need to be called out in the CHANGELOG for the next release:
include additional information in error messages