Skip to content

Commit

Permalink
Merge pull request #79 from ZzZombo/patch-1
Browse files Browse the repository at this point in the history
Propagate the `AbortError` up to the caller
  • Loading branch information
insraq authored Sep 11, 2024
2 parents 52ea51a + 16f0cf4 commit 6b6204b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions assets/Script/General/NativeSdk.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,8 @@ export class DefaultNativeSdk {
await stream.write(content);
await stream.close();
} catch (error) {
if(error instanceof AbortError)

Check failure on line 186 in assets/Script/General/NativeSdk.ts

View workflow job for this annotation

GitHub Actions / Typescipt Compile

Cannot find name 'AbortError'.
throw error;
downloadFile(content, suggestedName);
}
}
Expand Down

0 comments on commit 6b6204b

Please sign in to comment.