Improve error message for not found queries

Co-authored-by: Charis Kyriakou <charisk@users.noreply.github.com>
This commit is contained in:
Koen Vlaswinkel
2022-09-22 09:28:57 +02:00
parent 1b6685ef6f
commit 0133cd7734

View File

@@ -31,7 +31,8 @@ export async function exportRemoteQueryResults(
if (queryId) {
const query = queryHistoryManager.getQueryById(queryId);
if (!query) {
throw new Error(`Could not find query with id ${queryId}`);
void logger.log(`Could not find query with id ${queryId}`);
throw new Error('There was an error when trying to retrieve variant analysis information');
}
queryHistoryItem = query;
} else {