Skip to content
This repository was archived by the owner on Aug 11, 2021. It is now read-only.

Commit 560497f

Browse files
committed
Updates README.
1 parent 94d0b12 commit 560497f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -149,11 +149,13 @@ Asynchronously adds an array of block instances to the underlying repo.
149149
#### bs.getBlock(multihash, callback(err, block))
150150

151151
Asynchronously returns the block whose content multihash matches `multihash`.
152+
Returns an error (`err.code === 'ENOENT'`) if the block does not exist.
152153

153154
#### bs.getBlocks(multihashes, callback(err, blocks))
154155

155156
Asynchronously returns the blocks whose content multihashes match the array
156157
`multihashes`.
158+
Returns an error (`err.code === 'ENOENT'`) if *any* the blocks do not exist.
157159

158160
*Does not guarantee atomicity.*
159161

0 commit comments

Comments
 (0)