1
0
Fork 0
mirror of https://github.com/anyproto/any-sync.git synced 2025-06-08 14:07:02 +09:00

Fix for deleted storages

This commit is contained in:
mcrakhman 2025-01-04 16:22:57 +01:00
parent b103f553e5
commit 497a467768
No known key found for this signature in database
GPG key ID: DED12CFEF5B8396B

View file

@ -158,6 +158,9 @@ func NewStorage(ctx context.Context, id string, headStorage headstorage.HeadStor
st.arena = &anyenc.Arena{}
st.root, err = st.Get(ctx, st.id)
if err != nil {
if errors.Is(err, anystore.ErrDocNotFound) {
return nil, treestorage.ErrUnknownTreeId
}
return nil, err
}
return st, nil