Skip to content

Commit 549f806

Browse files
committed
use %v err in envtest
It's the general pattern to use ("%v", err) instead of ("%s", err.Error()) when formatting errors.
1 parent b15adb2 commit 549f806

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/envtest/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ func (te *Environment) startControlPlane() error {
181181
}
182182
}
183183
if numTries == maxRetries {
184-
return fmt.Errorf("failed to start the controlplane. retried %d times: %s", numTries, err.Error())
184+
return fmt.Errorf("failed to start the controlplane. retried %d times: %v", numTries, err)
185185
}
186186
return nil
187187
}

0 commit comments

Comments
 (0)