Fixed error on snapshot creating
This commit is contained in:
parent
b14a04c163
commit
0a9285c05e
@ -50,10 +50,8 @@ func (data *SnapshotManagerData) CreateSnapshot(ctx context.Context, sourceDir s
|
||||
if parentID != "" {
|
||||
_, err := data.metadataStore.GetSnapshotMetadata(ctx, parentID)
|
||||
if err != nil {
|
||||
if errors.Is(err, ErrNotFound) {
|
||||
return nil, ErrParentNotFound
|
||||
}
|
||||
return nil, fmt.Errorf("failed to check parent snapshot: %w", err)
|
||||
fmt.Println("failed to check parent snapshot: %w", err)
|
||||
parentID = ""
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user