Skip to content
This repository has been archived by the owner on Apr 6, 2020. It is now read-only.

Commit

Permalink
Fix levelup NotFoundError handling
Browse files Browse the repository at this point in the history
Signed-off-by: Sina Mahmoodi <itz.s1na@gmail.com>
  • Loading branch information
s1na committed Jan 3, 2019
1 parent 6095dc9 commit 9fd4bba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,7 @@ Blockchain.prototype._iterator = function (name, func, cb) {
} else {
blockNumber = false
// No more blocks, return
if (err instanceof level.errors.NotFoundError) {
if (err.type === 'NotFoundError') {
return cb2()
}
}
Expand Down

0 comments on commit 9fd4bba

Please sign in to comment.