From e08f3df2a73b73e676ae0a29466800b9bccd5a64 Mon Sep 17 00:00:00 2001 From: Isaac Shapira Date: Sat, 4 Jul 2020 11:55:40 -0600 Subject: [PATCH] log when name error is found --- lib/sources/Source.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/sources/Source.js b/lib/sources/Source.js index 3154cc5..604598b 100644 --- a/lib/sources/Source.js +++ b/lib/sources/Source.js @@ -121,6 +121,9 @@ Source.prototype.convertIntegrityStringToNixHash = function(integrity) { * @see NixASTNode#toNixAST */ Source.prototype.toNixAST = function() { + if(!this.config.name){ + console.log("name is missing:", this.config); + } return { name: this.config.name.replace("@", "_at_").replace("/", "_slash_"), // Escape characters from scoped package names that aren't allowed packageName: this.config.name,