From cf0f0a8c003b5395f11dd77078e54f2691309985 Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Sun, 4 Nov 2012 01:15:46 -0300 Subject: [PATCH] Do not print exception message. --- .../src/main/java/com/wisemapping/rest/AdminController.java | 1 + .../src/main/java/com/wisemapping/rest/BaseController.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/wise-webapp/src/main/java/com/wisemapping/rest/AdminController.java b/wise-webapp/src/main/java/com/wisemapping/rest/AdminController.java index 73bc1a85..7afd4d70 100644 --- a/wise-webapp/src/main/java/com/wisemapping/rest/AdminController.java +++ b/wise-webapp/src/main/java/com/wisemapping/rest/AdminController.java @@ -18,6 +18,7 @@ package com.wisemapping.rest; +import com.wisemapping.exceptions.ClientException; import com.wisemapping.exceptions.WiseMappingException; import com.wisemapping.model.User; import com.wisemapping.rest.model.RestUser; diff --git a/wise-webapp/src/main/java/com/wisemapping/rest/BaseController.java b/wise-webapp/src/main/java/com/wisemapping/rest/BaseController.java index 232088d6..36955db0 100644 --- a/wise-webapp/src/main/java/com/wisemapping/rest/BaseController.java +++ b/wise-webapp/src/main/java/com/wisemapping/rest/BaseController.java @@ -55,7 +55,7 @@ public class BaseController { @ResponseStatus(HttpStatus.BAD_REQUEST) @ResponseBody public RestErrors handleClientErrors(@NotNull IllegalArgumentException ex) { - ex.printStackTrace(); + System.err.println(ex.getMessage()); return new RestErrors(ex.getMessage()); }