This is a better fix. Docs for Azure/fetch-event-source mention you should re-throw the error in the onerror function to stop operation

Signed-off-by: Alex Lorenzi <alorenzi@spotify.com>
This commit is contained in:
Alex Lorenzi
2025-02-12 18:22:44 -05:00
parent 060453e701
commit 840a2687fe
3 changed files with 7 additions and 24 deletions
+1
View File
@@ -236,6 +236,7 @@ export class TechDocsStorageClient implements TechDocsStorageApi {
onerror(err) {
ctrl.abort();
reject(err);
throw err; // rethrow to stop the operation
},
});
});