]> Cypherpunks.ru repositories - gostls13.git/commit
fmt: make type of fmt.Errorf the same as that of errors.New
authorMarcel van Lohuizen <mpvl@golang.org>
Wed, 13 Mar 2019 15:25:02 +0000 (16:25 +0100)
committerMarcel van Lohuizen <mpvl@golang.org>
Thu, 14 Mar 2019 09:45:22 +0000 (09:45 +0000)
commit1f90d081391d4f5911960fd28d81d7ea5e554a8f
tree56293e016a78493038bd21a68f783f33132d1583
parent8bf18b56a47a98b9dd2fa03beb358312237a8c76
fmt: make type of fmt.Errorf the same as that of errors.New

This applies only for cases where %w is not used.

The purpose of this change is to reduce test failures where tests
depend on these two being the same type, as they previously were.

Change-Id: I2dd28b93fe1d59f3cfbb4eb0875d1fb8ee699746
Reviewed-on: https://go-review.googlesource.com/c/go/+/167402
Run-TryBot: Marcel van Lohuizen <mpvl@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Damien Neil <dneil@google.com>
src/errors/errors.go
src/fmt/errors.go
src/fmt/errors_test.go
src/go/build/deps_test.go
src/internal/errinternal/errinternal.go [new file with mode: 0644]