Skip to content

Commit

Permalink
prevent node crashing with not val.isNil (#843)
Browse files Browse the repository at this point in the history
  • Loading branch information
emizzle authored Jun 26, 2024
1 parent a55b676 commit a79bbd4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion codex/node.nim
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,10 @@ proc streamEntireDataset(
leoDecoderProvider,
self.taskpool)
without _ =? (await erasure.decode(manifest)), error:
trace "Unable to erasure decode manifest", manifestCid, exc = error.msg
error "Unable to erasure decode manifest", manifestCid, exc = error.msg
return failure(error)

return success()
# --------------------------------------------------------------------------
# FIXME this is a HACK so that the node does not crash during the workshop.
# We should NOT catch Defect.
Expand Down

0 comments on commit a79bbd4

Please sign in to comment.