diff --git a/src/source/GitHubRepository.ts b/src/source/GitHubRepository.ts index 8085fc4..5f091fb 100644 --- a/src/source/GitHubRepository.ts +++ b/src/source/GitHubRepository.ts @@ -125,6 +125,13 @@ export class GitHubRepository { } } + if (!selected) { + throw new AnonymousError("readme_not_available", { + httpStatus: 404, + object: this, + }); + } + return selected.readme; }