Browse Source

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.
Anthony Romano 8 years ago
parent
commit
28b4dce4f1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      etcdctl/ctlv3/command/error.go

+ 1 - 1
etcdctl/ctlv3/command/error.go

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