diff --git a/pkg/persistence/notification_queries.go b/pkg/persistence/notification_queries.go index baa873c..36adb76 100644 --- a/pkg/persistence/notification_queries.go +++ b/pkg/persistence/notification_queries.go @@ -11,7 +11,10 @@ func (p Profile) SaveNotification(n Notification) { tx, err := p.DB.Beginx() defer func() { if r := recover(); r != nil { - tx.Rollback() + err := tx.Rollback() + if err != nil { + panic(err) + } panic(r) // Re-raise the panic } }()