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

Fix levelup NotFoundError handling #83

Merged
merged 1 commit into from
Jan 3, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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