fix(init): no existing stores is not an error
This commit is contained in:
parent
ec3737863c
commit
0d53fcc28e
1 changed files with 2 additions and 1 deletions
|
|
@ -483,7 +483,8 @@ func restoreAllSnapshots(store *Store, repoDir string) error {
|
|||
entries, err := os.ReadDir(targetDir)
|
||||
if err != nil {
|
||||
if os.IsNotExist(err) {
|
||||
return fmt.Errorf("no existing stores found")
|
||||
fmt.Printf("no existing stores found, not restoring")
|
||||
return nil
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue