coreos / fleet

fleet ties together systemd and etcd into a distributed init system
Apache License 2.0
2.42k stars 303 forks source link

fleetctl: print out friendly error message from fleetctl list-machines #1649

Closed dongsupark closed 7 years ago

dongsupark commented 7 years ago

Print out friendly error message when fleetctl list-machines fails. Indicate that the API isn't working correctly instead of being unavailable. Also mention the most likely culprit, which is something to do with etcd.

Note that I didn't remove the prefix "googleapi:" as suggested by the original issue, because the prefix doesn't come from fleet, but from the google API itself.

Suggested by @robszumski Fixes https://github.com/coreos/fleet/issues/1203

dongsupark commented 7 years ago

Trivial. Merging.