]> Cypherpunks repositories - gostls13.git/commit
os: add PathError.Unwrap
authorJonathan Amsterdam <jba@google.com>
Mon, 18 Mar 2019 12:06:49 +0000 (08:06 -0400)
committerJonathan Amsterdam <jba@google.com>
Wed, 20 Mar 2019 10:26:55 +0000 (10:26 +0000)
commitb41eef244319df4f7431728ac7671cdbe8449778
tree7acb52b145df3ef2e626dc347b97090e9ccdedd7
parent9e0e9ac5547a9cc5174cca79abaac0cdd3ec787e
os: add PathError.Unwrap

Add an Unwrap method to PathError so it works with the errors.Is/As
functions.

Change-Id: Ia6171c0418584f3cd53ee99d97c687941a9e3109
Reviewed-on: https://go-review.googlesource.com/c/go/+/168097
Reviewed-by: Damien Neil <dneil@google.com>
src/os/error.go
src/os/error_test.go