Skip to content

Commit 0133cd7

Browse files
koesie10charisk
andcommitted
Improve error message for not found queries
Co-authored-by: Charis Kyriakou <charisk@users.noreply.github.com>
1 parent 1b6685e commit 0133cd7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

extensions/ql-vscode/src/remote-queries/export-results.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ export async function exportRemoteQueryResults(
3131
if (queryId) {
3232
const query = queryHistoryManager.getQueryById(queryId);
3333
if (!query) {
34-
throw new Error(`Could not find query with id ${queryId}`);
34+
void logger.log(`Could not find query with id ${queryId}`);
35+
throw new Error('There was an error when trying to retrieve variant analysis information');
3536
}
3637
queryHistoryItem = query;
3738
} else {

0 commit comments

Comments
 (0)