You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: replace "wrapf" calls with stdlib wrap calls (#1275)
There is no need to keep the legacy "wrapf" calls to wrap errors
anymore, so the idea is to remove them in favor of the wrapping calls of
the stdlib.
SANDBOX-1282
returnerrors.Wrapf(csverr, "failed to find CSV '%s' with Phase 'Succeeded'", currentCSV)
137
+
returnfmt.Errorf("failed to find CSV '%s' with Phase 'Succeeded': %w", currentCSV, csverr)
139
138
}
140
139
iferr!=nil {
141
-
returnerrors.Wrapf(err, "failed to verify installation of operator with subscription '%s' after %s", subscriptionResource.GetName(), installDuration.String())
140
+
returnfmt.Errorf("failed to verify installation of operator with subscription '%s' after %s: %w", subscriptionResource.GetName(), installDuration.String(), err)
142
141
}
143
142
144
143
fmt.Printf("Verified installation of operator with subscription '%s' completed in %s\n\n", subscriptionResource.GetName(), installDuration.String())
0 commit comments