Update the throw to not include the stack trace

This commit is contained in:
Oliver-Akins 2025-05-31 13:26:09 -06:00
parent de69fdec0f
commit af2dac394f

View file

@ -71,7 +71,9 @@ function buildPacks() {
try { try {
await buildCompendia(); await buildCompendia();
} catch { } catch {
throw new Error(`Compendium building failed, make sure Foundry isn't running`); const err = new Error(`Compendium building failed, make sure Foundry isn't running`);
err.stack = ``;
throw err;
}; };
await cp(`${__dirname}/packs`, `${buildDir}/packs`, { recursive: true, force: true }); await cp(`${__dirname}/packs`, `${buildDir}/packs`, { recursive: true, force: true });
for (const file of glob.sync(`${buildDir}/packs/**/_source/`)) { for (const file of glob.sync(`${buildDir}/packs/**/_source/`)) {