mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 23:17:50 +00:00
Extra newlines in error output
StandardErrorMessage does not have a newline by default, other error messages should not end with a newline.
This commit is contained in:
@@ -93,7 +93,7 @@ func checkErr(err error, handleErr func(string)) {
|
||||
|
||||
msg, ok := StandardErrorMessage(err)
|
||||
if !ok {
|
||||
msg = fmt.Sprintf("error: %s\n", err.Error())
|
||||
msg = fmt.Sprintf("error: %s", err.Error())
|
||||
}
|
||||
handleErr(msg)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user