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

Commit 803e4e1

Browse files
committed
Fixes missing error type.
1 parent 5f669b7 commit 803e4e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/block-service.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ function BlockService (ipfsRepo, exchange) {
8585
}
8686

8787
if (!Array.isArray(multihashes)) {
88-
return callback('Invalid batch of multihashes')
88+
return callback(new Error('Invalid batch of multihashes'))
8989
}
9090

9191
async.each(multihashes, (multihash, next) => {

0 commit comments

Comments
 (0)