From edda6085de9fc1108e67aa2bf08ac197289374cb Mon Sep 17 00:00:00 2001 From: lauener Date: Thu, 6 Jun 2024 16:15:05 +0200 Subject: [PATCH] Add missing error handling --- proof/hash.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/proof/hash.go b/proof/hash.go index eeaabd818..9fa57845f 100644 --- a/proof/hash.go +++ b/proof/hash.go @@ -54,7 +54,10 @@ func (c *hashProver) consumeMsg() error { } // Append the current message data to the proof - c.proof.Write(buf) + _, err = c.proof.Write(buf) + if err != nil { + return err + } c.msg.Reset() }