etcdctl: remove extra space in error message

Fprintln will insert a space between arguments, so printing "Error: "
would lead to two spaces between the "Error:" and the error string.
This commit is contained in:
Anthony Romano 2017-07-13 13:04:21 -07:00
parent 3dd7de3908
commit 28b4dce4f1

View File

@ -34,7 +34,7 @@ const (
)
func ExitWithError(code int, err error) {
fmt.Fprintln(os.Stderr, "Error: ", err)
fmt.Fprintln(os.Stderr, "Error:", err)
if cerr, ok := err.(*client.ClusterError); ok {
fmt.Fprintln(os.Stderr, cerr.Detail())
}