Skip to content

Commit d80496d

Browse files
rexxarsclaude
andcommitted
fix(deploy): use accurate error message for single vs multiple studios
Say "A studio found" instead of "Multiple studios found" when only one studio exists in the unattended error path. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 981e34c commit d80496d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/@sanity/cli/src/actions/deploy/findUserApplicationForStudio.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,9 @@ export async function findUserApplicationForStudio(options: FindUserApplicationF
7070
urlType === 'external'
7171
? 'Use --url to specify the external studio URL'
7272
: 'Use --url to specify the studio hostname'
73+
const count = userApplications.length > 1 ? 'Multiple studios' : 'A studio'
7374
output.error(
74-
`Multiple studios found for this project. Cannot select in unattended mode. ${flagHint}.`,
75+
`${count} found for this project. Cannot select in unattended mode. ${flagHint}.`,
7576
{exit: 1},
7677
)
7778
return null

0 commit comments

Comments
 (0)