Skip to content

Commit 6d55dff

Browse files
committed
Reword error message
1 parent 5c96b6e commit 6d55dff

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/analyses.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ for (let i = 0; i < analysisKinds.length; i++) {
102102
.returns([analysisKind, otherAnalysis].join(","));
103103
await t.throwsAsync(getAnalysisKinds(getRunnerLogger(true), true), {
104104
instanceOf: ConfigurationError,
105-
message: `${otherAnalysis} cannot be enabled at the same time as ${analysisKind}`,
105+
message: `${analysisKind} and ${otherAnalysis} cannot be enabled at the same time`,
106106
});
107107
});
108108
}

src/analyses.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ export async function getAnalysisKinds(
114114

115115
if (!compatibilityMatrix[analysisKind].has(otherAnalysisKind)) {
116116
throw new ConfigurationError(
117-
`${otherAnalysisKind} cannot be enabled at the same time as ${analysisKind}`,
117+
`${analysisKind} and ${otherAnalysisKind} cannot be enabled at the same time`,
118118
);
119119
}
120120
}

0 commit comments

Comments
 (0)