Skip to content

Commit

Permalink
SCRUM-3952: change to errorMessagesString
Browse files Browse the repository at this point in the history
  • Loading branch information
abecerra committed Sep 3, 2024
1 parent f388c5f commit 5130a0f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public GeneExpressionAnnotation validateAnnotation(GeneExpressionFmsDTO geneExpr

ObjectResponse<Reference> singleReferenceResponse = validateEvidence(geneExpressionFmsDTO);
if (singleReferenceResponse.hasErrors()) {
response.addErrorMessages("singleReference", singleReferenceResponse.errorMessagesString());
response.addErrorMessage("singleReference", singleReferenceResponse.errorMessagesString());
throw new ObjectValidationException(geneExpressionFmsDTO, response.errorMessagesString());
} else {
String referenceCurie = singleReferenceResponse.getEntity().getCurie();
Expand Down Expand Up @@ -118,7 +118,7 @@ public GeneExpressionAnnotation validateAnnotation(GeneExpressionFmsDTO geneExpr

ObjectResponse<AnatomicalSite> anatomicalSiteObjectResponse = validateAnatomicalSite(geneExpressionFmsDTO);
if (anatomicalSiteObjectResponse.hasErrors()) {
response.addErrorMessages("whereExpressed", anatomicalSiteObjectResponse.errorMessagesString());
response.addErrorMessage("whereExpressed", anatomicalSiteObjectResponse.errorMessagesString());
} else {
geneExpressionAnnotation.setWhereExpressedStatement(geneExpressionFmsDTO.getWhereExpressed().getWhereExpressedStatement());
AnatomicalSite anatomicalSite = updateAnatomicalSite(anatomicalSiteObjectResponse, geneExpressionAnnotation);
Expand All @@ -127,7 +127,7 @@ public GeneExpressionAnnotation validateAnnotation(GeneExpressionFmsDTO geneExpr

ObjectResponse<TemporalContext> temporalContextObjectResponse = validateTemporalContext(geneExpressionFmsDTO);
if (temporalContextObjectResponse.hasErrors()) {
response.addErrorMessages("whenExpressed", temporalContextObjectResponse.errorMessagesString());
response.addErrorMessage("whenExpressed", temporalContextObjectResponse.errorMessagesString());
} else {
geneExpressionAnnotation.setWhenExpressedStageName(geneExpressionFmsDTO.getWhenExpressed().getStageName());
TemporalContext temporalContext = updateTemporalContext(temporalContextObjectResponse, geneExpressionAnnotation);
Expand Down

0 comments on commit 5130a0f

Please sign in to comment.