Skip to content

Commit 251f480

Browse files
committed
Use correct version constant in handleUnsupportedVersion baseMessage
1 parent 688c04a commit 251f480

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

‎lib/entry-points.js‎

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/languages/traced.ts‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,12 @@ function handleUnsupportedVersion(
3838
product: "macOS" | "Xcode",
3939
version: semver.SemVer,
4040
) {
41+
const unsupportedVersion =
42+
product === "macOS"
43+
? UNSUPPORTED_DARWIN_FOR_TRACED
44+
: UNSUPPORTED_XCODE_FOR_TRACED;
4145
const baseMessage = [
42-
`Traced analysis is not supported on ${product} ${UNSUPPORTED_DARWIN_FOR_TRACED} or above.`,
46+
`Traced analysis is not supported on ${product} ${unsupportedVersion} or above.`,
4347
`Configure your analysis to run on macOS ${UNSUPPORTED_DARWIN_FOR_TRACED - 1} or below`,
4448
`and Xcode ${UNSUPPORTED_XCODE_FOR_TRACED - 1} or below.`,
4549
].join(" ");

0 commit comments

Comments
 (0)