Improve error categorizations

This commit is contained in:
Henry Mercer 2023-12-01 17:54:38 +00:00
parent db40ac46b9
commit 1d367b0bec
24 changed files with 47 additions and 38 deletions

2
lib/setup-codeql.js generated
View file

@ -465,7 +465,7 @@ exports.downloadCodeQL = downloadCodeQL;
function getCodeQLURLVersion(url) {
const match = url.match(/\/codeql-bundle-(.*)\//);
if (match === null || match.length < 2) {
throw new Error(`Malformed tools url: ${url}. Version could not be inferred`);
throw new util.UserError(`Malformed tools url: ${url}. Version could not be inferred`);
}
return match[1];
}