channeldb: fix suppressed error

This commit is contained in:
Joost Jager 2019-08-14 17:48:34 +02:00
parent d98a22879f
commit 762609a169
No known key found for this signature in database
GPG Key ID: A61B9D4C393C59C7

@ -855,7 +855,7 @@ func putInvoice(invoices, invoiceIndex, addIndex *bbolt.Bucket,
// Finally, serialize the invoice itself to be written to the disk.
var buf bytes.Buffer
if err := serializeInvoice(&buf, i); err != nil {
return 0, nil
return 0, err
}
if err := invoices.Put(invoiceKey[:], buf.Bytes()); err != nil {