fix(server): clarify source control errors for unknown providers #11131
main fromrefs/pull/11131/head·opened View on GitHubShowing 3 changed files with 21 additions and 8 deletions.
Add focused assertions for the new error messages
Add tests that assert both new user-visible strings. The existing unknown-provider test only checks structured fields, while the detection-failure test only verifies that the nested cause is omitted, so reverting either the new detail or the conditional message formatting would still leave the suite green. This backend behavior change must ship with focused coverage for the behavior it changes.
AGENTS.md reference: AGENTS.md:L109-L109
Useful? React with 👍 / 👎.
Addressed in c718e1693: the test now asserts error.detail === "No source control provider was detected for this project." and the full message === "Source control getChangeRequest failed: …", so reverting either change turns the suite red.