Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Dec 13, 2023
1 parent 5e37163 commit 386fbb7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/kit/src/core/config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,11 @@ export async function load_config({ cwd = process.cwd() } = {}) {
try {
return process_config(config.default, { cwd });
} catch (e) {
const error = /** @type {Error} */ (e);

// redact the stack trace — it's not helpful to users
e.stack = `Could not load svelte.config.js: ${e.message}\n`;
throw e;
error.stack = `Could not load svelte.config.js: ${error.message}\n`;
throw error;
}
}

Expand Down

0 comments on commit 386fbb7

Please sign in to comment.