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 133bd31 commit 1e410e7Copy full SHA for 1e410e7
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "openapi-typescript-codegen",
3
- "version": "0.12.2",
+ "version": "0.12.3",
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/axios/sendRequest.hbs
@@ -19,5 +19,12 @@ async function sendRequest(
19
20
onCancel(() => source.cancel('The user aborted a request.'));
21
22
- return await axios.request(config);
+ try {
23
+ return await axios.request(config);
24
+ } catch (error) {
25
+ if (error.response) {
26
+ return error.response;
27
+ }
28
+ throw error;
29
30
}
0 commit comments