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:
@@ -236,6 +236,7 @@ export class TechDocsStorageClient implements TechDocsStorageApi {
|
||||
onerror(err) {
|
||||
ctrl.abort();
|
||||
reject(err);
|
||||
throw err; // rethrow to stop the operation
|
||||
},
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user