We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d482a57 commit 133bd31Copy full SHA for 133bd31
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "openapi-typescript-codegen",
3
- "version": "0.12.1",
+ "version": "0.12.2",
4
"description": "Library that generates Typescript clients based on the OpenAPI specification.",
5
"author": "Ferdi Koomen",
6
"homepage": "https://github.com/ferdikoomen/openapi-typescript-codegen",
src/templates/core/xhr/sendRequest.hbs
@@ -17,6 +17,7 @@ async function sendRequest(
17
return new Promise<XMLHttpRequest>((resolve, reject) => {
18
xhr.onload = () => resolve(xhr);
19
xhr.onabort = () => reject(new Error('The user aborted a request.'));
20
+ xhr.onerror = () => reject(new Error('Network error.'));
21
xhr.send(body || formData);
22
23
onCancel(() => xhr.abort());
0 commit comments