Skip to content

Commit a22bf9e

Browse files
committed
fix: remove misleading --team hint from org-not-found errors
buildOrgNotFoundError was appending '--team <team-slug>' to the usage hint even though the error is about the org not being found. The user needs to fix the org, not the team. Now uses the base usage hint as-is.
1 parent 87e7e44 commit a22bf9e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/resolve-team.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ export async function buildOrgNotFoundError(
202202
throw new ResolutionError(
203203
`Organization '${orgSlug}'`,
204204
`not found (did you mean '${effectiveOrg}'?)`,
205-
`${usageHint} --team <team-slug>`,
205+
usageHint,
206206
[`Try using '${effectiveOrg}' as the org slug instead of '${orgSlug}'`]
207207
);
208208
}
@@ -220,7 +220,7 @@ export async function buildOrgNotFoundError(
220220
throw new ResolutionError(
221221
`Organization '${orgSlug}'`,
222222
"not found",
223-
`${usageHint} --team <team-slug>`,
223+
usageHint,
224224
suggestions
225225
);
226226
}

0 commit comments

Comments
 (0)