Update cmd/helm/profiling.go

Co-authored-by: George Jenkins <gvjenkins@gmail.com>
Signed-off-by: Evans Mungai <mbuevans@gmail.com>
pull/30552/head
Evans Mungai 7 months ago committed by Scott Rigby
parent 867c97e70d
commit 996ad84453
No known key found for this signature in database
GPG Key ID: C7C6FBB5B91C1155

@ -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

Loading…
Cancel
Save