Ensure destination directory exists when streaming extraction

This commit is contained in:
Henry Mercer
2024-12-03 15:42:51 +00:00
parent d5bcf48469
commit b2a4442810
6 changed files with 15 additions and 4 deletions

View File

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