parent
0f327a772b
commit
02220a411a
|
@ -252,7 +252,7 @@ public class ClientAPI {
|
||||||
if (client == null) {
|
if (client == null) {
|
||||||
logger.error("apiDeleteClient failed; client with id " + id + " could not be found.");
|
logger.error("apiDeleteClient failed; client with id " + id + " could not be found.");
|
||||||
modelAndView.getModelMap().put("code", HttpStatus.NOT_FOUND);
|
modelAndView.getModelMap().put("code", HttpStatus.NOT_FOUND);
|
||||||
modelAndView.addAttribute("errorMessage", "Could not delete client. The requested client with id " + id + "could not be found.");
|
modelAndView.getModelMap().put("errorMessage", "Could not delete client. The requested client with id " + id + "could not be found.");
|
||||||
return "jsonErrorView";
|
return "jsonErrorView";
|
||||||
} else {
|
} else {
|
||||||
modelAndView.getModelMap().put("code", HttpStatus.OK);
|
modelAndView.getModelMap().put("code", HttpStatus.OK);
|
||||||
|
|
Loading…
Reference in New Issue