mirror of
https://github.com/github/codeql-action.git
synced 2026-01-01 04:00:24 +08:00
Ensure destination directory exists when streaming extraction
This commit is contained in:
@@ -175,7 +175,9 @@ export async function extractTarZst(
|
||||
|
||||
if (tar instanceof stream.Readable) {
|
||||
tar.pipe(tarProcess.stdin).on("error", (err) => {
|
||||
reject(new Error(`Error while piping tar stream: ${err}`));
|
||||
reject(
|
||||
new Error(`Error while downloading and extracting tar: ${err}`),
|
||||
);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user