Skip to content

Commit 1de1b81

Browse files
committed
improve store error messaging
1 parent d0b3364 commit 1de1b81

File tree

1 file changed

+4
-1
lines changed
  • packages/app/src/cli/services/dev

1 file changed

+4
-1
lines changed

packages/app/src/cli/services/dev/fetch.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,10 @@ export async function fetchStore(
125125
): Promise<OrganizationStore> {
126126
const store = await developerPlatformClient.storeByDomain(org.id, storeFqdn)
127127

128-
if (!store) throw new AbortError(`Could not find Store for domain ${storeFqdn} in Organization ${org.businessName}.`)
128+
if (!store)
129+
throw new AbortError(
130+
`Could not find store for domain ${storeFqdn} in organization ${org.businessName}. Ensure you've provided the correct store domain, that the store is a Dev Store, and that you have access to the store.`,
131+
)
129132

130133
return store
131134
}

0 commit comments

Comments
 (0)