Skip to content

Commit 99215f4

Browse files
authored
Update databaseFetcher.ts
Made suggested changes; comments can be found at github#961
1 parent 8236b8a commit 99215f4

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

extensions/ql-vscode/src/databaseFetcher.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,10 +454,11 @@ export async function convertToDatabaseUrl(
454454
let projectJson = await downloadLgtmProjectMetadata(lgtmUrl);
455455

456456
if (projectJson.code === 404) {
457-
// fallback check for github repos with same name but different case
457+
// fallback check for github repositories with same name but different case
458+
// will fail for other providers
458459
let canonicalName = await retrieveCanonicalRepoName(lgtmUrl);
459460
if (!canonicalName) {
460-
throw new Error('Repository not found.');
461+
throw new Error(`Project was not found at ${lgtmUrl}.`);
461462
}
462463
canonicalName = convertRawLgtmSlug(`g/${canonicalName}`);
463464
projectJson = await downloadLgtmProjectMetadata(canonicalName);

0 commit comments

Comments
 (0)