Skip to content

Commit

Permalink
fix: add missing override modifier for error cause (#238)
Browse files Browse the repository at this point in the history
  • Loading branch information
vladfrangu authored Mar 2, 2022
1 parent 1952df9 commit f90e265
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/interceptors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export class InvalidResponseBodyError extends Error {

response: AxiosResponse;

cause: Error;
override cause: Error;

constructor(response: AxiosResponse, cause: Error) {
super(`Response body could not be parsed.\nCause:${cause.message}`);
Expand Down

0 comments on commit f90e265

Please sign in to comment.