Skip to content

Commit 4d5abf2

Browse files
edit error message for 400 error
1 parent 76c19cd commit 4d5abf2

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
@@ -25,7 +25,7 @@ class BalancesController(@Autowired val getBalancesForPersonService: GetBalances
2525
}
2626

2727
if (response.hasError(UpstreamApiError.Type.BAD_REQUEST)) {
28-
throw BadRequestException("Could not find account for person with id: $hmppsId")
28+
throw BadRequestException("Could not find account for person with id: $hmppsId at prison: $prisonId")
2929
}
3030

3131
if (response.hasError(UpstreamApiError.Type.INTERNAL_SERVER_ERROR)) {

0 commit comments

Comments
 (0)