prevent node crashing with `not val.isNil` (#843)
This commit is contained in:
parent
a55b676a42
commit
a79bbd459a
|
@ -257,7 +257,10 @@ proc streamEntireDataset(
|
||||||
leoDecoderProvider,
|
leoDecoderProvider,
|
||||||
self.taskpool)
|
self.taskpool)
|
||||||
without _ =? (await erasure.decode(manifest)), error:
|
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.
|
# FIXME this is a HACK so that the node does not crash during the workshop.
|
||||||
# We should NOT catch Defect.
|
# We should NOT catch Defect.
|
||||||
|
|
Loading…
Reference in New Issue