Skip to content

Commit ab18a74

Browse files
committed
Update error message for no repos queried
1 parent 8e6cfa8 commit ab18a74

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

extensions/ql-vscode/src/view/variant-analysis/FailureReasonAlert.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@ type Props = {
1212
const getTitle = (failureReason: VariantAnalysisFailureReason): string => {
1313
switch (failureReason) {
1414
case VariantAnalysisFailureReason.NoReposQueried:
15-
return 'No repositories queried';
15+
return 'No repositories to analyze';
1616
case VariantAnalysisFailureReason.InternalError:
17-
return 'Internal error';
17+
return 'Something unexpected happened';
1818
}
1919
};
2020

2121
const getMessage = (failureReason: VariantAnalysisFailureReason): string => {
2222
switch (failureReason) {
2323
case VariantAnalysisFailureReason.NoReposQueried:
24-
return 'No repositories were queried for this variant analysis. This may be because you do not have access to any of the requested repositories, or none of the requested repositories have CodeQL databases.';
24+
return 'No repositories available after processing. No repositories were analyzed.';
2525
case VariantAnalysisFailureReason.InternalError:
2626
return 'An internal error occurred while running this variant analysis. Please try again later.';
2727
}

0 commit comments

Comments
 (0)