diff --git a/lib/local-storage.js b/lib/local-storage.js index 108504f0f..2fe988bc8 100644 --- a/lib/local-storage.js +++ b/lib/local-storage.js @@ -575,7 +575,7 @@ Storage.prototype.get_recent_packages = function(startkey, callback) { Storage.prototype.update_package = function(name, updateFn, _callback) { var self = this var storage = self.storage(name) - if (!storage) return callback(new UError({ + if (!storage) return _callback(new UError({ status: 404, message: 'no such package available', }))