Commit 9e7a0e2a authored by k8s-merge-robot's avatar k8s-merge-robot

Merge pull request #20053 from smarterclayton/dont_duplicate_prefix

Auto commit by PR queue bot
parents 311d8f8a f9c48c86
......@@ -125,7 +125,10 @@ func checkErr(err error, handleErr func(string)) {
msg, ok := StandardErrorMessage(err)
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)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment