diff options
Diffstat (limited to '')
-rw-r--r-- | golang/pkg/database/transactions.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/golang/pkg/database/transactions.go b/golang/pkg/database/transactions.go index 71719c7..08278a1 100644 --- a/golang/pkg/database/transactions.go +++ b/golang/pkg/database/transactions.go @@ -13,7 +13,7 @@ func (db *DB) AppendTransaction(transaction *model.Transaction) error { return fmt.Errorf("failed to marshal transaction: %w", err) } if _, err := db.Exec(`INSERT INTO transactions(data) VALUES (json(?));`, data); err != nil { - return fmt.Errorf("failed to append transaction: %w", err) + return fmt.Errorf("failed to exec: %w", err) } return nil } |