diff options
-rw-r--r-- | packages/astro/src/core/errors.ts | 2 | ||||
-rw-r--r-- | packages/astro/src/core/messages.ts | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/packages/astro/src/core/errors.ts b/packages/astro/src/core/errors.ts index 2b1be3a3a..c37a05740 100644 --- a/packages/astro/src/core/errors.ts +++ b/packages/astro/src/core/errors.ts @@ -83,6 +83,6 @@ export function collectErrorMetadata(e: any): ErrorWithMetadata { } // Generic error (probably from Vite, and already formatted) - e.hint = generateHint(e); + e.hint = generateHint(e); return e; } diff --git a/packages/astro/src/core/messages.ts b/packages/astro/src/core/messages.ts index e96dd4bb1..fcaec7bb1 100644 --- a/packages/astro/src/core/messages.ts +++ b/packages/astro/src/core/messages.ts @@ -214,7 +214,7 @@ export function formatErrorMessage(_err: Error, args: string[] = []): string { args.push(`${bgRed(black(` error `))}${red(bold(padMultilineString(err.message)))}`); if (err.hint) { args.push(` ${bold('Hint:')}`); - args.push(yellow(padMultilineString(err.hint, 4))); + args.push(yellow(padMultilineString(err.hint, 4))); } if (err.id) { args.push(` ${bold('File:')}`); |