Skip to content

Commit

Permalink
Made some changes in error parse logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Pranav-b-7 committed Mar 31, 2022
1 parent 9e6acd8 commit cc677e7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class RetrofitErrorHandler {
return new ResponseEntity<Object>(networkErrorResponse, HttpStatus.INTERNAL_SERVER_ERROR)
}
if (retrofitError.getResponse()!=null && retrofitError.getResponse().getStatus() > 0){
if (retrofitError.getBody() instanceof Response){
if (retrofitError.getResponse().getBody() !=null){
InputStream inputStream = null
try {
inputStream = retrofitError.getResponse().getBody().in()
Expand Down

0 comments on commit cc677e7

Please sign in to comment.