mirror of
https://github.com/restic/restic.git
synced 2026-07-18 05:04:54 +00:00
all: Replace some errors.Wrap calls by errors.WithStack
Mostly changed the ones that repeat the name of a system call, which is already contained in os.PathError.Op. internal/fs.Reader had to be changed to actually return such errors.
This commit is contained in:
@@ -13,7 +13,7 @@ import (
|
||||
func (node Node) restoreSymlinkTimestamps(path string, utimes [2]syscall.Timespec) error {
|
||||
dir, err := fs.Open(filepath.Dir(path))
|
||||
if err != nil {
|
||||
return errors.Wrap(err, "Open")
|
||||
return errors.WithStack(err)
|
||||
}
|
||||
|
||||
times := []unix.Timespec{
|
||||
|
||||
Reference in New Issue
Block a user