diff --git a/website/scripts/build-static-content.js b/website/scripts/build-static-content.js index 07315ebb2a..0af1afac0b 100644 --- a/website/scripts/build-static-content.js +++ b/website/scripts/build-static-content.js @@ -759,7 +759,7 @@ module.exports = { throw new Error(`Failed compiling markdown content: A whitepaper article is missing a 'formCallToAction' meta tag at ${path.join(topLvlRepoPath, pageSourcePath)}. To resolve, add a formCallToAction meta tag with a value set to the heading that should be displayed on the form to download the whitepaper (e.g., "Learn how GitOps transforms device management") and try running this script again.`); } if(!embeddedMetadata.whitepaperFilename){ - throw new Error(`Failed compiling markdown content: A whitepaper article is missing a 'whitepaperFilename' meta tag at ${path.join(topLvlRepoPath, pageSourcePath)}. To resolve, add a whitepaperFilename meta tag with a value that is the filename of a PDF whitepaper in the website/assets/pdf folder and try running this script again.`); + throw new Error(`Failed compiling markdown content: A whitepaper article is missing a 'whitepaperFilename' meta tag at ${path.join(topLvlRepoPath, pageSourcePath)}. To resolve, add a whitepaperFilename meta tag with a value that is the filename of a PDF whitepaper in the website/assets/pdfs folder and try running this script again.`); } else { let whitePaperPdfExists = await sails.helpers.fs.exists(path.join(topLvlRepoPath, 'website/assets/pdfs/'+embeddedMetadata.whitepaperFilename)); if(!whitePaperPdfExists){