mirror of
https://github.com/github/codeql-action.git
synced 2026-04-29 02:18:47 +00:00
Reword error message
This commit is contained in:
@@ -102,7 +102,7 @@ for (let i = 0; i < analysisKinds.length; i++) {
|
||||
.returns([analysisKind, otherAnalysis].join(","));
|
||||
await t.throwsAsync(getAnalysisKinds(getRunnerLogger(true), true), {
|
||||
instanceOf: ConfigurationError,
|
||||
message: `${otherAnalysis} cannot be enabled at the same time as ${analysisKind}`,
|
||||
message: `${analysisKind} and ${otherAnalysis} cannot be enabled at the same time`,
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
+1
-1
@@ -114,7 +114,7 @@ export async function getAnalysisKinds(
|
||||
|
||||
if (!compatibilityMatrix[analysisKind].has(otherAnalysisKind)) {
|
||||
throw new ConfigurationError(
|
||||
`${otherAnalysisKind} cannot be enabled at the same time as ${analysisKind}`,
|
||||
`${analysisKind} and ${otherAnalysisKind} cannot be enabled at the same time`,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user