mirror of
https://github.com/github/codeql-action
synced 2026-05-25 15:00:36 +03:00
Add better comments and error messages for pack-related changes
This commit is contained in:
Generated
+11
-5
@@ -499,10 +499,16 @@ function getCodeQLForCmd(cmd) {
|
||||
}).exec();
|
||||
return output;
|
||||
},
|
||||
// Download specified packs into the package cache. If the specified
|
||||
// package and version already exists (e.g., from a previous analysis run),
|
||||
// then it is not downloaded again (unless the extra option `--force` is
|
||||
// specified).
|
||||
/**
|
||||
* Download specified packs into the package cache. If the specified
|
||||
* package and version already exists (e.g., from a previous analysis run),
|
||||
* then it is not downloaded again (unless the extra option `--force` is
|
||||
* specified).
|
||||
*
|
||||
* If no version is specified, then the latest version is
|
||||
* downloaded. The check to determine what the latest version is is done
|
||||
* each time this package is requested.
|
||||
*/
|
||||
async packDownload(packs) {
|
||||
const args = [
|
||||
"pack",
|
||||
@@ -523,7 +529,7 @@ function getCodeQLForCmd(cmd) {
|
||||
return JSON.parse(output);
|
||||
}
|
||||
catch (e) {
|
||||
throw new Error(`Attempted to download specified packs but got error ${e}.`);
|
||||
throw new Error(`Attempted to download specified packs but got an error:${"\n"}${output}.`);
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user