mirror of
https://github.com/helm/helm.git
synced 2026-08-09 01:21:20 +00:00
Update cmd/helm/profiling.go
Co-authored-by: George Jenkins <gvjenkins@gmail.com> Signed-off-by: Evans Mungai <mbuevans@gmail.com>
This commit is contained in:
committed by
Scott Rigby
parent
867c97e70d
commit
996ad84453
@@ -83,8 +83,8 @@ func stopProfiling() error {
|
||||
}
|
||||
}
|
||||
|
||||
if len(errs) > 0 {
|
||||
return fmt.Errorf("errors while stopping profiling: [%s]", strings.Join(errs, ", "))
|
||||
if err := errors.Join(errs...); err != nil {
|
||||
return fmt.Errorf("error(s) while stopping profiling: %w", err)
|
||||
}
|
||||
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user