Skip to content

Commit

Permalink
update name
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskapp committed Feb 14, 2024
1 parent 50050ee commit a2181d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Generator/Client/Language/typescript-operation.ts.twig
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@
throw error;
} else if (axios.isAxiosError(error) && error.response) {
switch (error.response.status) {
{% for code, return in operation.throws %}
{% for code, throw in operation.throws %}
case {{ code }}:
throw new {{ return.className|raw }}(error.response.data);
throw new {{ throw.className|raw }}(error.response.data);
{% endfor %}
default:
throw new UnknownStatusCodeException('The server returned an unknown status code');
Expand Down

0 comments on commit a2181d6

Please sign in to comment.