From 762609a16973124580dd648bdee27cb5b8e44246 Mon Sep 17 00:00:00 2001 From: Joost Jager Date: Wed, 14 Aug 2019 17:48:34 +0200 Subject: [PATCH] channeldb: fix suppressed error --- channeldb/invoices.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/channeldb/invoices.go b/channeldb/invoices.go index 2fb490e9..339761df 100644 --- a/channeldb/invoices.go +++ b/channeldb/invoices.go @@ -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 {