diff --git a/scope.go b/scope.go index 0003d575..a11d4ec4 100644 --- a/scope.go +++ b/scope.go @@ -380,7 +380,7 @@ func (scope *Scope) CommitOrRollback() *Scope { if scope.HasError() { db.Rollback() } else { - db.Commit() + scope.Err(db.Commit()) } scope.db.db = scope.db.parent.db }