Use correct version constant in handleUnsupportedVersion baseMessage

This commit is contained in:
Michael B. Gale
2026-10-30 11:02:47 +00:00
parent 688c04ad4c
commit 251f480fa3
2 changed files with 7 additions and 2 deletions

View File

@@ -38,8 +38,12 @@ function handleUnsupportedVersion(
product: "macOS" | "Xcode",
version: semver.SemVer,
) {
const unsupportedVersion =
product === "macOS"
? UNSUPPORTED_DARWIN_FOR_TRACED
: UNSUPPORTED_XCODE_FOR_TRACED;
const baseMessage = [
`Traced analysis is not supported on ${product} ${UNSUPPORTED_DARWIN_FOR_TRACED} or above.`,
`Traced analysis is not supported on ${product} ${unsupportedVersion} or above.`,
`Configure your analysis to run on macOS ${UNSUPPORTED_DARWIN_FOR_TRACED - 1} or below`,
`and Xcode ${UNSUPPORTED_XCODE_FOR_TRACED - 1} or below.`,
].join(" ");