Skip to content

Commit

Permalink
[kbss-cvut/record-manager-ui#186] Change description of error msg in …
Browse files Browse the repository at this point in the history
…createRecord handler
  • Loading branch information
palagdan committed Jul 22, 2024
1 parent 3102dc4 commit c8189cb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ private PatientRecord findInternal(String key) {
public ResponseEntity<String> createRecord(@RequestBody PatientRecord record) {

if(userService.getCurrentUser().getInstitution() == null)
return ResponseEntity.status(HttpStatus.CONFLICT).body("User has no relation to the institution");
return ResponseEntity.status(HttpStatus.CONFLICT).body("User is not assigned to any institution");

recordService.persist(record);
if (LOG.isTraceEnabled()) {
Expand Down

0 comments on commit c8189cb

Please sign in to comment.