mirror of
https://github.com/github/codeql-action
synced 2026-05-29 05:00:55 +03:00
Throw full error for CLI bundle download (#1657)
This commit is contained in:
Generated
+1
-2
@@ -122,8 +122,7 @@ async function setupCodeQL(toolsInput, apiDetails, tempDir, variant, defaultCliV
|
||||
};
|
||||
}
|
||||
catch (e) {
|
||||
logger.error((0, util_1.wrapError)(e).message);
|
||||
throw new Error("Unable to download and extract CodeQL CLI");
|
||||
throw new Error(`Unable to download and extract CodeQL CLI: ${(0, util_1.wrapError)(e).message}`);
|
||||
}
|
||||
}
|
||||
exports.setupCodeQL = setupCodeQL;
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+3
-2
@@ -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}`
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user