Skip to content

Commit 0dc37c7

Browse files
authored
Merge pull request #377 from github/fix-version-in-message
Fix the formatting of a warning message.
2 parents 601dc84 + f109c77 commit 0dc37c7

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

lib/util.js

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

lib/util.js.map

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

src/util.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,14 +267,14 @@ export function checkGitHubVersionInRange(
267267
disallowedAPIVersionReason === DisallowedAPIVersionReason.ACTION_TOO_OLD
268268
) {
269269
logger.warning(
270-
`The CodeQL ${toolName} version you are using is too old to be compatible with GitHub Enterprise ${version}. If you experience issues, please upgrade to a more recent version of the CodeQL ${toolName}.`
270+
`The CodeQL ${toolName} version you are using is too old to be compatible with GitHub Enterprise ${version.version}. If you experience issues, please upgrade to a more recent version of the CodeQL ${toolName}.`
271271
);
272272
}
273273
if (
274274
disallowedAPIVersionReason === DisallowedAPIVersionReason.ACTION_TOO_NEW
275275
) {
276276
logger.warning(
277-
`GitHub Enterprise ${version} is too old to be compatible with this version of the CodeQL ${toolName}. If you experience issues, please upgrade to a more recent version of GitHub Enterprise or use an older version of the CodeQL ${toolName}.`
277+
`GitHub Enterprise ${version.version} is too old to be compatible with this version of the CodeQL ${toolName}. If you experience issues, please upgrade to a more recent version of GitHub Enterprise or use an older version of the CodeQL ${toolName}.`
278278
);
279279
}
280280
hasBeenWarnedAboutVersion = true;

0 commit comments

Comments
 (0)