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
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}`
);
}
}