Skip to content

Commit

Permalink
Merge pull request #65 from ministryofjustice/LCAM-985
Browse files Browse the repository at this point in the history
LCAM-985: mapped traceId in ErrorDTO
  • Loading branch information
skasthuri36326 authored Oct 23, 2023
2 parents d4952e9 + e820c30 commit 7b6dd23
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public class CrimeEvidenceExceptionHandler {
private final TraceIdHandler traceIdHandler;

private static ResponseEntity<ErrorDTO> buildErrorResponse(HttpStatus status, String errorMessage, String traceId) {
return new ResponseEntity<>(ErrorDTO.builder().code(status.toString()).message(errorMessage).build(), status);
return new ResponseEntity<>(ErrorDTO.builder().traceId(traceId).code(status.toString()).message(errorMessage).build(), status);
}

@ExceptionHandler(APIClientException.class)
Expand Down

0 comments on commit 7b6dd23

Please sign in to comment.