diff --git a/bin/sanitycheck.js b/bin/sanitycheck.js index 539e44ede..27f3b7b0d 100755 --- a/bin/sanitycheck.js +++ b/bin/sanitycheck.js @@ -275,6 +275,10 @@ apps.forEach((app,appIdx) => { } else ERROR(`App ${app.id} 'dependencies' must be an object`, {file:metadataFile}); } + if (!app.storage) { + ERROR(`App ${app.id} metadata has no "storage" field`, {file:metadataFile}); + return; + } if (app.storage.find(f=>f.name.endsWith(".clkinfo.js")) && !appTags.includes("clkinfo")) WARN(`App ${app.id} provides ...clkinfo.js but doesn't have clkinfo tag`, {file:metadataFile});