Throw full error for CLI bundle download (#1657)

This commit is contained in:
Angela P Wen 2023-04-24 07:46:45 -07:00 committed by GitHub
parent c5f3f016ae
commit a9648ea7c6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View file

@ -340,8 +340,9 @@ export async function setupCodeQL(
toolsVersion,
};
} catch (e) {
logger.error(wrapError(e).message);
throw new Error("Unable to download and extract CodeQL CLI");
throw new Error(
`Unable to download and extract CodeQL CLI: ${wrapError(e).message}`
);
}
}