We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 271e28c + 4969c1f commit 3135ec6Copy full SHA for 3135ec6
.changeset/small-guests-brake.md
@@ -0,0 +1,5 @@
1
+---
2
+'@shopify/app': patch
3
4
+
5
+Better error message for certain types of invalid app TOML files
packages/app/src/cli/models/app/loader.ts
@@ -82,7 +82,7 @@ export async function loadConfigurationFileContent(
82
// eslint-disable-next-line @typescript-eslint/no-explicit-any
83
} catch (err: any) {
84
// TOML errors have line, pos and col properties
85
- if (err.line && err.pos && err.col) {
+ if (err.line !== undefined && err.pos !== undefined && err.col !== undefined) {
86
return abortOrReport(
87
outputContent`Fix the following error in ${outputToken.path(filepath)}:\n${err.message}`,
88
{},
0 commit comments