Skip to content

Commit 1d4c372

Browse files
committed
feat(helper): add check for empty options
1 parent a4e1988 commit 1d4c372

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

packages/cli/src/commands/deploy/helper.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ export const confirmOptionsUpdate = async (
256256
}
257257

258258
export const printManifestOptions = (options: ManifestOption[] | undefined) => {
259-
if (options?.length === 0) {
259+
if (options?.length === 0 || options === undefined) {
260260
return
261261
}
262262

@@ -351,10 +351,8 @@ export const loadManifest = (): Manifest | undefined => {
351351

352352
return load()
353353
} catch (err) {
354-
console.log(bold(red('[ERROR]')), `Error while loading the manifest file`)
355354
console.log(`path: ${MANIFEST_FILE_NAME}`)
356-
console.log(`error: ${getErrorMessage(err)}`)
357-
355+
console.log(red(`${bold('[ERROR]:')} ${getErrorMessage(err)}`))
358356
return undefined
359357
}
360358
}

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ const loadManifest = (): Manifest | undefined => {
4949
}
5050
}
5151

52-
//TODO check this
5352
const displayManifestChecking = () => {
5453
if (manifestExists()) {
5554
console.log(

0 commit comments

Comments
 (0)