mirror of
https://github.com/octoleo/restic.git
synced 2024-12-24 11:55:28 +00:00
catch err
This commit is contained in:
parent
6e20eba852
commit
e9009358a9
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.Inode = stat.Ino
|
||||||
|
|
||||||
node.fillUser(stat)
|
|
||||||
node.fillTimes(stat)
|
node.fillTimes(stat)
|
||||||
|
|
||||||
var err error
|
var err error
|
||||||
|
|
||||||
|
if err = node.fillUser(stat); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
switch node.Type {
|
switch node.Type {
|
||||||
case "file":
|
case "file":
|
||||||
node.Size = uint64(stat.Size)
|
node.Size = uint64(stat.Size)
|
||||||
|
Loading…
Reference in New Issue
Block a user