mirror of
https://github.com/vbatts/go-mtree.git
synced 2024-11-21 16:05:40 +00:00
handle error
This commit is contained in:
parent
d843e933df
commit
9c8328e386
1 changed files with 4 additions and 1 deletions
|
@ -117,7 +117,10 @@ skip:
|
|||
}
|
||||
}
|
||||
|
||||
spec.WriteTo(writer)
|
||||
_, err = spec.WriteTo(writer)
|
||||
if err != nil {
|
||||
return fmt.Errorf("writing mtree %s: %w", outputPath, err)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue