Skip to content

Commit 3c31446

Browse files
fix: Fix errorf calls that had more than one error-wrapping directive (ktrysmt#223)
Co-authored-by: Thomas O'Neill <[email protected]>
1 parent f850913 commit 3c31446

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

repository.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1550,7 +1550,7 @@ func decodeEnvironments(response string) (*Environments, error) {
15501550
if errs == nil {
15511551
errs = err
15521552
} else {
1553-
errs = fmt.Errorf("%w; environment %d: %w", errs, idx, err)
1553+
errs = fmt.Errorf("%w; environment %d: %v", errs, idx, err)
15541554
}
15551555
} else {
15561556
environmentsArray = append(environmentsArray, environment)
@@ -1627,7 +1627,7 @@ func decodeDeploymentVariables(response string) (*DeploymentVariables, error) {
16271627
if errs == nil {
16281628
errs = err
16291629
} else {
1630-
errs = fmt.Errorf("%w; deployment variable %d: %w", errs, idx, err)
1630+
errs = fmt.Errorf("%w; deployment variable %d: %v", errs, idx, err)
16311631
}
16321632
} else {
16331633
variablesArray = append(variablesArray, variable)

0 commit comments

Comments
 (0)