Skip to content

Commit 39e694a

Browse files
committed
Updated client error messages
1 parent 9fdad67 commit 39e694a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

server/src/main/groovy/ish/oncourse/server/api/service/BulkChangeApiService.groovy

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,13 @@ class BulkChangeApiService {
106106

107107
if(clzz.equals(Outcome)) {
108108
if(entities.find {(it as Outcome).status != OutcomeStatus.STATUS_NOT_SET})
109-
validator.throwClientErrorException("diff", "Request returned outcomes with status, not equals to 'not set'. Bulk remove of these outcomes is not allowed")
109+
validator.throwClientErrorException("diff", "Request returned outcomes with status not equal to 'Not set'. Bulk removing these outcomes is not allowed")
110110

111111
if(entities.collect{(it as Outcome).contact}.findAll{it}.unique().size() > 1)
112-
validator.throwClientErrorException("diff", "Request returned outcomes, related to different students. Bulk remove of these outcomes is not allowed")
112+
validator.throwClientErrorException("diff", "Request returned outcomes related to different students. Bulk removing these outcomes is not allowed")
113113

114114
if(entities.find {!(it as Outcome).fundingUploadOutcomes.isEmpty()})
115-
validator.throwClientErrorException("diff", "Request returned outcome, that has funding upload. Bulk remove of these outcomes is not allowed")
115+
validator.throwClientErrorException("diff", "Request returned outcomes included in funding upload. Bulk removing these outcomes is not allowed")
116116
}
117117

118118
try {

0 commit comments

Comments
 (0)