x/crypto/ssh: Wrap error in NewClientConn #45207
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
https://play.golang.org/p/CdUXyBdUq2g
What did you expect to see?
Using type assertion or
errors.As
for things like*net.OpError
on errors returned byNewClientConn
works.What did you see instead?
The returned error is a
*errors.errorString
due to the fact that it's returned usingfmt.Errorf
and%v
instead of%w
.The text was updated successfully, but these errors were encountered: