2
2
mirror of https://github.com/octoleo/restic.git synced 2024-12-23 11:28:54 +00:00

catch err

This commit is contained in:
Florian Weingarten 2015-05-01 17:31:02 -04:00 committed by Alexander Neumann
parent 6e20eba852
commit e9009358a9

View File

@ -383,11 +383,14 @@ func (node *Node) fillExtra(path string, fi os.FileInfo) error {
node.Inode = stat.Ino
node.fillUser(stat)
node.fillTimes(stat)
var err error
if err = node.fillUser(stat); err != nil {
return err
}
switch node.Type {
case "file":
node.Size = uint64(stat.Size)