prevent node crashing with `not val.isNil` (#843)

This commit is contained in:
Eric 2024-06-27 00:22:44 +10:00 committed by GitHub
parent a55b676a42
commit a79bbd459a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 1 deletions

View File

@ -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.