mirror of
https://github.com/withastro/astro.git
synced 2025-01-20 22:12:38 -05:00
[ci] format
This commit is contained in:
parent
e48aa2fd1e
commit
4838c51081
2 changed files with 2 additions and 2 deletions
|
@ -83,6 +83,6 @@ export function collectErrorMetadata(e: any): ErrorWithMetadata {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Generic error (probably from Vite, and already formatted)
|
// Generic error (probably from Vite, and already formatted)
|
||||||
e.hint = generateHint(e);
|
e.hint = generateHint(e);
|
||||||
return e;
|
return e;
|
||||||
}
|
}
|
||||||
|
|
|
@ -214,7 +214,7 @@ export function formatErrorMessage(_err: Error, args: string[] = []): string {
|
||||||
args.push(`${bgRed(black(` error `))}${red(bold(padMultilineString(err.message)))}`);
|
args.push(`${bgRed(black(` error `))}${red(bold(padMultilineString(err.message)))}`);
|
||||||
if (err.hint) {
|
if (err.hint) {
|
||||||
args.push(` ${bold('Hint:')}`);
|
args.push(` ${bold('Hint:')}`);
|
||||||
args.push(yellow(padMultilineString(err.hint, 4)));
|
args.push(yellow(padMultilineString(err.hint, 4)));
|
||||||
}
|
}
|
||||||
if (err.id) {
|
if (err.id) {
|
||||||
args.push(` ${bold('File:')}`);
|
args.push(` ${bold('File:')}`);
|
||||||
|
|
Loading…
Add table
Reference in a new issue