mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
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:
parent
3dd7de3908
commit
28b4dce4f1
@ -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())
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user