Skip to content

Commit c035ecf

Browse files
committed
wip
Signed-off-by: Jens Reinecke <[email protected]>
1 parent 3676468 commit c035ecf

File tree

1 file changed

+28
-7
lines changed

1 file changed

+28
-7
lines changed

scripts/download-tools.ts

Lines changed: 28 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -277,13 +277,34 @@ async function downloadGDB(target: VsceTarget, dest: string, options?: ToolOptio
277277
});
278278
} else {
279279
console.debug(`fastExtract: downld ${downloadFilePath}, dest ${destPath} ...`);
280-
console.debug(`fastExtract: ./tools ${readdirSync('./tools')}.`);
281-
console.debug(`fastExtract: downld ${readdirSync(downloadFilePath)}.`);
282-
await fastExtract(downloadFilePath, destPath, { strip: 1, type: fileType?.ext }).catch(error => {
283-
throw new Error(`Failed to extract ${downloadFilePath}`, { cause: error });
284-
});
285-
console.debug(`fastExtract: downld ${readdirSync(downloadFilePath)}.`);
286-
console.debug(`fastExtract: destPath ${readdirSync(destPath)}`);
280+
try {
281+
console.debug(`fastExtract: ./tools ${readdirSync('./tools')}.`);
282+
} catch {
283+
//
284+
}
285+
try {
286+
console.debug(`fastExtract: downld ${readdirSync(downloadPath)}.`);
287+
} catch {
288+
//
289+
}
290+
try {
291+
await fastExtract(downloadFilePath, destPath, { strip: 1, type: fileType?.ext }).catch(error => {
292+
throw new Error(`Failed to extract ${downloadFilePath}`, { cause: error });
293+
});
294+
} catch {
295+
return;
296+
} finally {
297+
try {
298+
console.debug(`fastExtract: downld ${readdirSync(downloadFilePath)}.`);
299+
} catch {
300+
//
301+
}
302+
try {
303+
console.debug(`fastExtract: destPath ${readdirSync(destPath)}`);
304+
} catch {
305+
//
306+
}
307+
}
287308
}
288309

289310

0 commit comments

Comments
 (0)