Move error annotation for symlink timestamp restore

This commit is contained in:
Alexander Neumann 2015-05-16 13:25:10 +02:00
parent 44219c5afe
commit 14a3ed4e9d
2 changed files with 10 additions and 2 deletions

View file

@ -171,7 +171,7 @@ func (node Node) RestoreTimestamps(path string) error {
if node.Type == "symlink" {
if err := node.restoreSymlinkTimestamps(path, utimes); err != nil {
return errors.Annotate(err, "UtimesNano")
return err
}
return nil