channeldb: fix suppressed error
This commit is contained in:
parent
d98a22879f
commit
762609a169
@ -855,7 +855,7 @@ func putInvoice(invoices, invoiceIndex, addIndex *bbolt.Bucket,
|
|||||||
// Finally, serialize the invoice itself to be written to the disk.
|
// Finally, serialize the invoice itself to be written to the disk.
|
||||||
var buf bytes.Buffer
|
var buf bytes.Buffer
|
||||||
if err := serializeInvoice(&buf, i); err != nil {
|
if err := serializeInvoice(&buf, i); err != nil {
|
||||||
return 0, nil
|
return 0, err
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := invoices.Put(invoiceKey[:], buf.Bytes()); err != nil {
|
if err := invoices.Put(invoiceKey[:], buf.Bytes()); err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user