diff --git a/src/analyses.test.ts b/src/analyses.test.ts index 89fe7b4fd..33a0f7a6c 100644 --- a/src/analyses.test.ts +++ b/src/analyses.test.ts @@ -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`, }); }); } diff --git a/src/analyses.ts b/src/analyses.ts index ee3437c32..2a039b102 100644 --- a/src/analyses.ts +++ b/src/analyses.ts @@ -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`, ); } }