]> Cypherpunks repositories - gostls13.git/commit
os: return *PathError error in File.Sync on Plan 9
authorFazlul Shahriar <fshahriar@gmail.com>
Thu, 25 Jun 2020 05:15:42 +0000 (01:15 -0400)
committerDavid du Colombier <0intro@gmail.com>
Thu, 25 Jun 2020 12:02:38 +0000 (12:02 +0000)
commit334752dc8207d6d19d9fb1a99d2e97f7d326c82a
tree8424a80e066688f6163a2bf3a7e30358b0f9cb86
parent1bb247a469e306c57a5e0eaba788efb8b3b1acef
os: return *PathError error in File.Sync on Plan 9

File.Sync was returning *SyscallError instead of *PathError on Plan 9.
Adjust the error type to match other systems.

Fixes #39800

Change-Id: I844e716eb61c193ef78d29cb0b4a3ef790bb3320
Reviewed-on: https://go-review.googlesource.com/c/go/+/239857
Reviewed-by: David du Colombier <0intro@gmail.com>
src/os/file_plan9.go