From 6b344309f73a7460b93a7affee262a21e60a88f0 Mon Sep 17 00:00:00 2001 From: "Michael B. Gale" Date: Wed, 21 Oct 2026 19:36:06 +0100 Subject: [PATCH] Log versions if there are some --- pr-checks/toolcache.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pr-checks/toolcache.ts b/pr-checks/toolcache.ts index 7339bf898..6d734a2e7 100755 --- a/pr-checks/toolcache.ts +++ b/pr-checks/toolcache.ts @@ -45,11 +45,11 @@ function hasCodeQLInToolcache(expectedNumber?: string) { : undefined; const allCodeqlVersions = findCodeQL(); - core.info(`Found CodeQL versions: ${allCodeqlVersions}`); - if (allCodeqlVersions.length === 0) { throw new Error("CodeQL not found in toolcache"); } + + core.info(`Found CodeQL versions: ${allCodeqlVersions.join(", ")}`); if (expected !== undefined && allCodeqlVersions.length !== expected) { throw new Error( `Expected ${expected} versions of CodeQL in the toolcache, but found ${allCodeqlVersions.length}`,