Skip to content
This repository was archived by the owner on Jun 25, 2025. It is now read-only.
Prev Previous commit
Next Next commit
Change undefined response instead of message to avoid unexpeted side …
…effects
  • Loading branch information
Pedro Escudero authored and Pedro Escudero committed Dec 9, 2018
commit 7ef841d1365bcdf5d636c0aecd7fd01b25b45b26
2 changes: 1 addition & 1 deletion src/Http/AxiosClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export class AxiosClient extends Client implements HttpClient {
return resolve(response);
})
.catch((error) => {
if(error.message === undefined){
if(error.response === undefined){
console.info("Request Canceled");
return;
}
Expand Down