diff --git a/src/scripts/contributors/contributors.ts b/src/scripts/contributors/contributors.ts index 1728f10a8f..ae72f5f0f7 100644 --- a/src/scripts/contributors/contributors.ts +++ b/src/scripts/contributors/contributors.ts @@ -113,7 +113,8 @@ const init = async () => { green(`Successfully created ${fileName} image!`) ); }) - .catch(() => { + .catch((error) => { + console.log('> Material Icon Theme:', red(`Error: ${error}`)); throw Error(red(`Error while creating ${fileName} image`)); }); }; diff --git a/src/scripts/helpers/screenshots.ts b/src/scripts/helpers/screenshots.ts index 2285aa9e04..d27b5f1d21 100644 --- a/src/scripts/helpers/screenshots.ts +++ b/src/scripts/helpers/screenshots.ts @@ -7,7 +7,10 @@ import Puppeteer from 'puppeteer'; * @param fileName Name of the output image */ export const createScreenshot = async (filePath: string, fileName: string) => { - const browser = await Puppeteer.launch(); + const browser = await Puppeteer.launch({ + headless: true, + args: ['--no-sandbox', '--disable-setuid-sandbox'], + }); const htmlFilePath = join('file:', filePath); try {