Skip to content

RollbackWithError修正 #999

Description

@H1rono

func RollbackWithError(tx *ent.Tx, err error) error {
if err != nil {
_ = tx.Rollback()
return err
}
return tx.Rollback()
}

tx.Rollbackのerrorを捨てない

ref:

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions