Skip to content

Commit

Permalink
avniproject/avni-webapp#1290 | Error message for address level type d…
Browse files Browse the repository at this point in the history
…eletion
  • Loading branch information
1t5j0y committed Aug 22, 2024
1 parent 711c250 commit bbf2161
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public ResponseEntity<?> voidAddressLevelType(@PathVariable("id") Long id) {
}
if (!addressLevelType.isVoidable()) {
return ResponseEntity.badRequest().body(ReactAdminUtil.generateJsonError(
String.format("Cannot delete Type '%s' until all SubTypes are deleted or there are non-voided addresses depending on it", addressLevelType.getName())));
String.format("Cannot delete '%s'. Sub location types or locations of this type exist. Please delete them to proceed.", addressLevelType.getName())));
}
addressLevelType.setVoided(true);
return new ResponseEntity<>(addressLevelType, HttpStatus.OK);
Expand Down

0 comments on commit bbf2161

Please sign in to comment.