aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/system
diff options
context:
space:
mode:
authorOphestra Umiker <cat@ophivana.moe>2024-10-25 17:08:21 +0900
committerOphestra Umiker <cat@ophivana.moe>2024-10-25 17:08:21 +0900
commit5b249e4a661b5bedae3ff6000ece693e0b913073 (patch)
tree2789b029566c825b2f6d06da0b9245226494cf58 /internal/system
parent2a348c7f912a17dbb0d29624cb3bef2add9d7492 (diff)
system: print number of ops completed at point of failure
Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
Diffstat (limited to 'internal/system')
-rw-r--r--internal/system/op.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/system/op.go b/internal/system/op.go
index fcfc29b2..7d293773 100644
--- a/internal/system/op.go
+++ b/internal/system/op.go
@@ -94,6 +94,7 @@ func (sys *I) Commit() error {
// sp is set to nil when all ops are applied
if sp != nil {
// rollback partial commit
+ fmsg.VPrintf("commit faulted after %d ops, rolling back partial commit", len(sp.ops))
if err := sp.Revert(&Criteria{nil}); err != nil {
fmsg.Println("errors returned reverting partial commit:", err)
}