[cli] Change error message from Error! to Error: (#8498)

We have code that tries to detect and highlight errors in the build logs, however it doesn't look for `Error!`, only `Error:`.

We could update that highlight code or we could update Vercel CLI to make it consistent.

This PR is the latter.
This commit is contained in:
Steven
2022-09-01 13:12:41 -04:00
committed by GitHub
parent 13a8a7dbf6
commit 675c3e2915
11 changed files with 48 additions and 52 deletions

View File

@@ -73,7 +73,7 @@ export class Output {
link?: string,
action = 'Learn More'
) => {
this.print(`${chalk.red(`Error!`)} ${str}\n`);
this.print(`${chalk.red(`Error:`)} ${str}\n`);
const details = slug ? `https://err.sh/vercel/${slug}` : link;
if (details) {
this.print(`${chalk.bold(action)}: ${renderLink(details)}\n`);