Update the throw to not include the stack trace
This commit is contained in:
parent
de69fdec0f
commit
af2dac394f
1 changed files with 3 additions and 1 deletions
|
|
@ -71,7 +71,9 @@ function buildPacks() {
|
|||
try {
|
||||
await buildCompendia();
|
||||
} 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 });
|
||||
for (const file of glob.sync(`${buildDir}/packs/**/_source/`)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue