Skip to content

Commit 33f30e1

Browse files
committed
feat(sandbox): add red color to error message
1 parent ad3d93e commit 33f30e1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/field-plugin/helpers/vite/src/manifest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ const validateOptions = (options: unknown[]): void => {
7474

7575
if (incorrectValues.length > 0) {
7676
throw new Error(
77-
'ERROR: Each option must be an object with string properties "name" and "value". The following values need to be corrected: \n ' +
77+
'Each option must be an object with string properties "name" and "value". The following values need to be corrected: \n ' +
7878
incorrectValues.join('\n '),
7979
)
8080
}

packages/field-plugin/helpers/vite/src/sandbox.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as querystring from 'querystring'
2-
import { bold } from './utils/text'
2+
import { red, bold } from './utils/text'
33
import { arrows } from './utils/arrows'
44
import { load, manifestExists, MANIFEST_FILE_NAME } from './manifest'
55
import type { Manifest } from './manifest'
@@ -58,4 +58,4 @@ const displayManifestChecking = () => {
5858
}
5959

6060
const displayManifestErrorLoading = (err: Error) =>
61-
console.log(`${arrows.red} ${bold(`${err.message}`)}`)
61+
console.log(`${arrows.red} ${red(`${err.message}`)}`)

0 commit comments

Comments
 (0)