Merge pull request #8259 from heyitsanthony/etcdctl-err-space

etcdctl: remove extra space in error message
This commit is contained in:
Anthony Romano 2017-07-14 09:55:06 -07:00 committed by GitHub
commit 858938e32d
2 changed files with 8 additions and 8 deletions

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())
}