Skip to content

Commit fcb080a

Browse files
edit error message for 500 error
1 parent 4d5abf2 commit fcb080a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsintegrationapi/controllers/v1/BalancesController.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class BalancesController(@Autowired val getBalancesForPersonService: GetBalances
2929
}
3030

3131
if (response.hasError(UpstreamApiError.Type.INTERNAL_SERVER_ERROR)) {
32-
throw InternalServerErrorException("Could not find accounts for person with id: $hmppsId")
32+
throw InternalServerErrorException("Error occurred while trying to get accounts for person with id: $hmppsId")
3333
}
3434
return response
3535
}

0 commit comments

Comments
 (0)