mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 21:47:07 +00:00
Merge pull request #20053 from smarterclayton/dont_duplicate_prefix
Auto commit by PR queue bot
This commit is contained in:
commit
9e7a0e2a03
@ -125,7 +125,10 @@ func checkErr(err error, handleErr func(string)) {
|
|||||||
|
|
||||||
msg, ok := StandardErrorMessage(err)
|
msg, ok := StandardErrorMessage(err)
|
||||||
if !ok {
|
if !ok {
|
||||||
msg = fmt.Sprintf("error: %s", err.Error())
|
msg = err.Error()
|
||||||
|
if !strings.HasPrefix(msg, "error: ") {
|
||||||
|
msg = fmt.Sprintf("error: %s", msg)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
handleErr(msg)
|
handleErr(msg)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user