Skip to content

Commit

Permalink
LCAM-985: mapped traceId in ErrorDTO
Browse files Browse the repository at this point in the history
  • Loading branch information
skasthuri36326 committed Oct 23, 2023
1 parent da02bab commit 6f771a4
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 6f771a4

Please sign in to comment.