mirror of
https://github.com/helm/helm.git
synced 2026-05-28 04:35:48 -04:00
refactor: remove more unnecessary format calls
Signed-off-by: Jesse Simpson <jesse.simpson36@gmail.com>
This commit is contained in:
parent
0a7dd4b269
commit
deea4a0d0e
1 changed files with 2 additions and 2 deletions
|
|
@ -413,7 +413,7 @@ func cleanupExecError(filename string, err error) error {
|
|||
current = errors.Unwrap(current)
|
||||
}
|
||||
if current != nil {
|
||||
return fmt.Errorf("%s", err.Error())
|
||||
return err
|
||||
}
|
||||
|
||||
var prev TraceableError
|
||||
|
|
@ -439,7 +439,7 @@ func cleanupExecError(filename string, err error) error {
|
|||
}
|
||||
if strings.TrimSpace(finalErrorString) == "" {
|
||||
// Fallback to original error message if nothing was extracted
|
||||
return fmt.Errorf("%s", err.Error())
|
||||
return err
|
||||
}
|
||||
|
||||
return fmt.Errorf("%s", finalErrorString)
|
||||
|
|
|
|||
Loading…
Reference in a new issue