Skip to content

Commit c4d9eed

Browse files
committed
Update error message when there is a missing contextual query
References #476
1 parent c34c9fa commit c4d9eed

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

extensions/ql-vscode/src/contextual/queryResolver.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ export async function resolveQueries(cli: CodeQLCliServer, qlpack: string, keyTy
3737
const queries = await cli.resolveQueriesInSuite(suiteFile, helpers.getOnDiskWorkspaceFolders());
3838
if (queries.length === 0) {
3939
helpers.showAndLogErrorMessage(
40-
`No ${nameOfKeyType(keyType)} queries (tagged "${tagOfKeyType(keyType)}") could be found in the current library path. It might be necessary to upgrade the CodeQL libraries.`
40+
`No ${nameOfKeyType(keyType)} queries (tagged "${tagOfKeyType(keyType)}") could be found in the current library path. \
41+
Try upgrading the CodeQL libraries. If that doesn't work, then ${nameOfKeyType(keyType)} queries are not yet available \
42+
for this language.`
4143
);
4244
throw new Error(`Couldn't find any queries tagged ${tagOfKeyType(keyType)} for qlpack ${qlpack}`);
4345
}

0 commit comments

Comments
 (0)