github.go: adjust organization not found error message to indicate that org was manually specified in configuration (#45918)

This commit is contained in:
Geoffrey Gilmore 2022-12-22 10:24:43 -08:00 committed by GitHub
parent 6988b6221a
commit 53262d8761
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -27,6 +27,7 @@ All notable changes to Sourcegraph are documented in this file.
### Changed
- Code Insights no longer uses a custom index of commits to compress historical backfill and instead queries the repository log directly. This allows the compression algorithm to span any arbitrary time frame, and should improve the reliability of the compression in general. [#45644](https://github.com/sourcegraph/sourcegraph/pull/45644)
- GitHub code host configuration: The error message for non-existent organizations has been clarified to indicate that the organization is one that the user manually specified in their code host configuration. [#45918](https://github.com/sourcegraph/sourcegraph/pull/45918)
- Git blame view got a user-interface overhaul and now shows data in a more structured way with additional visual hints. [#44397](https://github.com/sourcegraph/sourcegraph/issues/44397)
### Fixed

View File

@ -440,7 +440,7 @@ func (s *GitHubSource) listOrg(ctx context.Context, org string, results chan *gi
if page == 1 {
var e *github.APIError
if errors.As(err, &e) && e.Code == 404 {
oerr = errors.Errorf("organisation %q not found", org)
oerr = errors.Errorf("organisation %q (specified in configuration) not found", org)
err = nil
}
}