aboutsummaryrefslogtreecommitdiffhomepage
path: root/system/op.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-08-30 22:49:12 +0900
committerOphestra <cat@gensokyo.uk>2025-08-30 22:49:12 +0900
commitf5abce9df5727904a1daa246025a87c4bfe62553 (patch)
tree7e8c29b83e97532954dee8adb5f86962eaebca34 /system/op.go
parentddb003e39b64c2417cabc291383d99b4ad64ac8f (diff)
system: wrap op errors
This passes more information allowing for better error handling. This eliminates generic WrapErr from system. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'system/op.go')
-rw-r--r--system/op.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/op.go b/system/op.go
index 10e95c1a..25f3fa29 100644
--- a/system/op.go
+++ b/system/op.go
@@ -123,7 +123,7 @@ func (sys *I) Commit(ctx context.Context) error {
// rollback partial commit
msg.Verbosef("commit faulted after %d ops, rolling back partial commit", len(sp.ops))
if err := sp.Revert(nil); err != nil {
- log.Println("errors returned reverting partial commit:", err)
+ printJoinedError(log.Println, "cannot revert partial commit:", err)
}
}
}()