Skip to content

Commit

Permalink
Fix gateway errors when status is >= 400, should reject with the same…
Browse files Browse the repository at this point in the history
… error as axios (#770)
  • Loading branch information
Pierre-Gilles authored May 4, 2020
1 parent ca3fc7f commit 72c3666
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion front/src/utils/GatewayHttpClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ export class GatewayHttpClient {
return result;
} catch (e) {
const error = {
response: e
response: {
status: e.status,
data: e
}
};
throw error;
}
Expand Down

0 comments on commit 72c3666

Please sign in to comment.