diff options
author | 2022-05-12 16:30:41 +0000 | |
---|---|---|
committer | 2022-05-12 16:30:41 +0000 | |
commit | 4838c510816dc111b5ac81eaacfa5c1a3a2ceff7 (patch) | |
tree | d57666cb0f74564151c2a52ef8e3af3221b76b53 | |
parent | e48aa2fd1ee4a3637647990182e1f3aa9384e259 (diff) | |
download | astro-4838c510816dc111b5ac81eaacfa5c1a3a2ceff7.tar.gz astro-4838c510816dc111b5ac81eaacfa5c1a3a2ceff7.tar.zst astro-4838c510816dc111b5ac81eaacfa5c1a3a2ceff7.zip |
[ci] format
-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:')}`); |