From 4838c510816dc111b5ac81eaacfa5c1a3a2ceff7 Mon Sep 17 00:00:00 2001 From: matthewp Date: Thu, 12 May 2022 16:30:41 +0000 Subject: [PATCH] [ci] format --- packages/astro/src/core/errors.ts | 2 +- 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 2b1be3a3ab..c37a05740e 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 e96dd4bb10..fcaec7bb13 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:')}`);