diff --git a/npmregistry.coffee b/npmregistry.coffee index 6f10c9e..d4fe475 100644 --- a/npmregistry.coffee +++ b/npmregistry.coffee @@ -63,7 +63,7 @@ module.exports = { return fs.readFileAsync('cache/pluginlist.json').then( (data) => return JSON.parse(data) ).catch( (err) -> - if(err.code == 'NOENT') + if(err.code == 'ENOENT') return [] throw err ) @@ -87,4 +87,4 @@ module.exports = { .then( () => plugins ) ) -} \ No newline at end of file +}