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