Skip to content

Commit

Permalink
[ci] format
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewp authored and github-actions[bot] committed May 12, 2022
1 parent e48aa2f commit 4838c51
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/astro/src/core/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
2 changes: 1 addition & 1 deletion packages/astro/src/core/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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:')}`);
Expand Down

0 comments on commit 4838c51

Please sign in to comment.