Skip to content

Commit 55af644

Browse files
committed
fix: use displaySlug in ambiguous-project error messages
BugBot correctly flagged that the ValidationError (line 1334) and ResolutionError (line 1522) for ambiguous project matches still used projectSlug instead of displaySlug.
1 parent c0583e4 commit 55af644

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/lib/resolve-target.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1331,7 +1331,7 @@ export async function resolveProjectBySlug(
13311331
? `\n\nExample: ${disambiguationExample}`
13321332
: "";
13331333
throw new ValidationError(
1334-
`Project "${projectSlug}" exists in multiple organizations.\n\n` +
1334+
`Project "${displaySlug}" exists in multiple organizations.\n\n` +
13351335
`Specify the organization:\n${orgList}${example}`
13361336
);
13371337
}
@@ -1520,7 +1520,7 @@ export async function resolveOrgProjectTarget(
15201520
.map((m) => ` sentry ${commandName} ${m.orgSlug}/${m.slug}`)
15211521
.join("\n");
15221522
throw new ResolutionError(
1523-
`Project '${parsed.projectSlug}'`,
1523+
`Project '${displaySlug}'`,
15241524
"is ambiguous",
15251525
`sentry ${commandName} <org>/${parsed.projectSlug}`,
15261526
[

0 commit comments

Comments
 (0)