level-sublevel
Advanced tools
Comparing version 6.1.7 to 6.1.8
{ | ||
"name": "level-sublevel", | ||
"description": "partition levelup databases", | ||
"version": "6.1.7", | ||
"version": "6.1.8", | ||
"homepage": "https://github.com/dominictarr/level-sublevel", | ||
@@ -6,0 +6,0 @@ "repository": { |
@@ -99,5 +99,4 @@ var EventEmitter = require('events').EventEmitter | ||
nut.get(key, prefix, mergeOpts(opts), function (err, value) { | ||
if(err) cb(err) | ||
else if(value) cb(null, value) | ||
else cb(new errors.NotFoundError()) | ||
if(err) cb(new errors.NotFoundError('Key not found in database', err)) | ||
else cb(null, value) | ||
}) | ||
@@ -104,0 +103,0 @@ } |
@@ -13,2 +13,3 @@ var tape = require('tape') | ||
t.notOk(value) | ||
t.equal(err.name, 'NotFoundError') | ||
t.end() | ||
@@ -15,0 +16,0 @@ }) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
72609