Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use %v rather than %w for
t.Errorf
calls
This is to fix the following test build error: $ go test ./geom # github.com/peterstace/simplefeatures/geom_test geom/alg_set_op_test.go:990:7: (*testing.common).Errorf does not support error-wrapping directive %w geom/ctor_options_test.go:41:5: (*testing.common).Errorf does not support error-wrapping directive %w FAIL github.com/peterstace/simplefeatures/geom [build failed] FAIL Note that this error only seems to occur with go1.18. I'm not really sure why this is coming up as an actual compile error rather than a vet warning (I haven't looked into it).
- Loading branch information