Quick bug fix
This commit is contained in:
parent
f7c1e461e6
commit
3efa753394
2
api.go
2
api.go
@ -117,7 +117,7 @@ func (a *Agate) SaveSnapshot(ctx context.Context, name string, parentID string)
|
|||||||
|
|
||||||
// Call OpenFunc if provided
|
// Call OpenFunc if provided
|
||||||
if a.options.OpenFunc != nil {
|
if a.options.OpenFunc != nil {
|
||||||
if err := a.options.OpenFunc(a.options.WorkDir); err != nil {
|
if err := a.options.OpenFunc(a.options.BlobStore.GetActiveDir()); err != nil {
|
||||||
return "", fmt.Errorf("failed to open resources after snapshot: %w", err)
|
return "", fmt.Errorf("failed to open resources after snapshot: %w", err)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user