Replaces LPStreamReadError, it was removed from libp2p

This commit is contained in:
Ben 2024-08-15 14:46:43 +02:00
parent 3c62c05a3c
commit 38302936b9
No known key found for this signature in database
GPG Key ID: 0F16E812E736C24B
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ method readOnce*(
# Read contents of block `blockNum`
without blk =? await self.store.getBlock(address), error:
raise newLPStreamReadError(error)
raise newException(LPStreamIncompleteError, "Incomplete data: " & error.msg)
trace "Reading bytes from store stream", manifestCid = self.manifest.cid.get(), numBlocks = self.manifest.blocksCount, blockNum, blkCid = blk.cid, bytes = readBytes, blockOffset