mirror of
https://github.com/restic/restic.git
synced 2025-03-09 00:00:02 +01:00
catch err
This commit is contained in:
parent
aac044e083
commit
a96cc6960f
1 changed files with 4 additions and 1 deletions
5
node.go
5
node.go
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue