mirror of
https://github.com/github/codeql-action.git
synced 2026-01-04 05:30:16 +08:00
Ensure loadApiError is caught
And add a better error message. By using `void` instead of `await`, any error thrown is not caught by surrounding try-catch blocks. I could continue to use `void` and explicitly handle any thrown errors by using `.catch`, but most likely the time savings is minimal and this makes the code more complex.
This commit is contained in:
@@ -143,9 +143,10 @@ async function run() {
|
||||
repositoryNwo,
|
||||
logger
|
||||
);
|
||||
void featureFlags.preloadFeatureFlags();
|
||||
|
||||
try {
|
||||
await featureFlags.preloadFeatureFlags();
|
||||
|
||||
const workflowErrors = await validateWorkflow();
|
||||
|
||||
if (
|
||||
|
||||
Reference in New Issue
Block a user