We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 14abcd2 + bbd9b97 commit 63019a4Copy full SHA for 63019a4
siva/repository.go
@@ -13,7 +13,7 @@ import (
13
)
14
15
// ErrRepoAlreadyClosed is returned when a repository opened in RW mode was already closed.
16
-var ErrRepoAlreadyClosed = errors.NewKind("repository % already closed")
+var ErrRepoAlreadyClosed = errors.NewKind("repository %s already closed")
17
18
// Repository is an implementation for siva files of borges.Repository
19
// interface.
@@ -108,6 +108,8 @@ func (r *Repository) Commit() error {
108
109
err := r.saveVersion()
110
if err != nil {
111
+ // TODO: log the rollback error
112
+ _ = r.location.Rollback(r.mode)
113
return err
114
}
115
0 commit comments