From af2dac394f6fb11b9c347adefb8ec147d9179316 Mon Sep 17 00:00:00 2001 From: Oliver-Akins Date: Sat, 31 May 2025 13:26:09 -0600 Subject: [PATCH] Update the throw to not include the stack trace --- vite.config.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vite.config.js b/vite.config.js index 4f0c2e1..aa24662 100644 --- a/vite.config.js +++ b/vite.config.js @@ -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/`)) {