fix(init): no existing stores is not an error

This commit is contained in:
Lewis Wynne 2025-12-19 23:08:34 +00:00
parent ec3737863c
commit 0d53fcc28e

View file

@ -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
}