chore(orm): add missing error checks (#15141)

This commit is contained in:
Mark Rushakoff
2023-02-23 20:45:53 +00:00
committed by GitHub
parent 79b74ff121
commit 2b126af060
3 changed files with 16 additions and 0 deletions
+3
View File
@@ -122,6 +122,9 @@ func (t tableImpl) doSave(ctx context.Context, writer *batchIndexCommitmentWrite
// store object
bz, err := proto.MarshalOptions{Deterministic: true}.Marshal(message)
if err != nil {
return err
}
err = writer.CommitmentStore().Set(pk, bz)
if err != nil {
return err