mirror of
https://github.com/lifegpc/eh-downloader.git
synced 2026-07-08 01:31:00 +08:00
Add workround for deno can not handle error in streams
This commit is contained in:
@@ -343,6 +343,9 @@ export async function download_task(
|
||||
signal: force_abort,
|
||||
preventClose: true,
|
||||
});
|
||||
if (pr.error) {
|
||||
throw (pr.error);
|
||||
}
|
||||
} finally {
|
||||
try {
|
||||
f.close();
|
||||
|
||||
Reference in New Issue
Block a user