summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar matthewp <matthewp@users.noreply.github.com> 2022-05-12 16:30:41 +0000
committerGravatar github-actions[bot] <github-actions[bot]@users.noreply.github.com> 2022-05-12 16:30:41 +0000
commit4838c510816dc111b5ac81eaacfa5c1a3a2ceff7 (patch)
treed57666cb0f74564151c2a52ef8e3af3221b76b53
parente48aa2fd1ee4a3637647990182e1f3aa9384e259 (diff)
downloadastro-4838c510816dc111b5ac81eaacfa5c1a3a2ceff7.tar.gz
astro-4838c510816dc111b5ac81eaacfa5c1a3a2ceff7.tar.zst
astro-4838c510816dc111b5ac81eaacfa5c1a3a2ceff7.zip
[ci] format
-rw-r--r--packages/astro/src/core/errors.ts2
-rw-r--r--packages/astro/src/core/messages.ts2
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:')}`);