This is an automated email from the git hooks/post-receive script. New commit to branch feature/1369-demarage-initial in repository lima. See https://gitlab.nuiton.org/chorem/lima.git commit 5be94d47acfb55bc7db134811699b2a6b7a29882 Author: David Cossé <cosse@codelutin.com> Date: Thu Sep 8 17:16:37 2016 +0200 refs #1174 Ne pas réencapsuler une exception Lima dans une autre --- .../main/java/org/chorem/lima/business/ejb/ImportServiceImpl.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lima-business/src/main/java/org/chorem/lima/business/ejb/ImportServiceImpl.java b/lima-business/src/main/java/org/chorem/lima/business/ejb/ImportServiceImpl.java index 11a23d1..f361bc9 100644 --- a/lima-business/src/main/java/org/chorem/lima/business/ejb/ImportServiceImpl.java +++ b/lima-business/src/main/java/org/chorem/lima/business/ejb/ImportServiceImpl.java @@ -366,7 +366,11 @@ public class ImportServiceImpl extends AbstractLimaService implements ImportServ result.increaseCreated(); } } catch (Exception e) { - result.addInitException(new ImportFileException(e.getMessage())); + if (e instanceof LimaException) { + result.addInitException((LimaException) e); + } else { + result.addInitException(new ImportFileException(e.getMessage())); + } results.setErrors(true); } finally { IOUtils.closeQuietly(contentStream); -- To stop receiving notification emails like this one, please contact chorem.org SCM administrator <admin+scm@chorem.org>.