We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8236b8a commit 99215f4Copy full SHA for 99215f4
1 file changed
extensions/ql-vscode/src/databaseFetcher.ts
@@ -454,10 +454,11 @@ export async function convertToDatabaseUrl(
454
let projectJson = await downloadLgtmProjectMetadata(lgtmUrl);
455
456
if (projectJson.code === 404) {
457
- // fallback check for github repos with same name but different case
+ // fallback check for github repositories with same name but different case
458
+ // will fail for other providers
459
let canonicalName = await retrieveCanonicalRepoName(lgtmUrl);
460
if (!canonicalName) {
- throw new Error('Repository not found.');
461
+ throw new Error(`Project was not found at ${lgtmUrl}.`);
462
}
463
canonicalName = convertRawLgtmSlug(`g/${canonicalName}`);
464
projectJson = await downloadLgtmProjectMetadata(canonicalName);
0 commit comments