Skip to content

Commit

Permalink
Add missing error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
K1li4nL committed Jun 11, 2024
1 parent dd2435a commit 5689ca1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion proof/hash.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

Expand Down

0 comments on commit 5689ca1

Please sign in to comment.