From 9d915dd432409e2c2f160d722844b36b1d2b4b13 Mon Sep 17 00:00:00 2001 From: Florian idB Date: Mon, 3 Aug 2020 11:37:11 +0200 Subject: [PATCH] Update npmregistry.coffee fixed exception name for node 12 compatibility --- npmregistry.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +}