From: mka Date: Tue, 19 Mar 2013 12:25:05 +0000 (+0000) Subject: small correction. X-Git-Tag: Root_Delivery2_2013_04_22~86 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=feec9d8014747ccdea7d5c5cdb8607d5b1f6caf5;p=tools%2Fsiman.git small correction. --- diff --git a/Workspace/Siman-Common/src/org/splat/service/StudyServiceImpl.java b/Workspace/Siman-Common/src/org/splat/service/StudyServiceImpl.java index 14145e9..9b7bd1c 100644 --- a/Workspace/Siman-Common/src/org/splat/service/StudyServiceImpl.java +++ b/Workspace/Siman-Common/src/org/splat/service/StudyServiceImpl.java @@ -1304,10 +1304,7 @@ public class StudyServiceImpl implements StudyService { dataset.addSeries(series); } catch (FileNotFoundException e) { - if (LOG.isDebugEnabled()) { - LOG.debug("Sorry, the file is not found."); - } - return "ERROR"; + LOG.error("Sorry, the file is not found.", e); } } // for @@ -1346,13 +1343,9 @@ public class StudyServiceImpl implements StudyService { document.close(); } catch (FileNotFoundException e) { - if (LOG.isDebugEnabled()) { - LOG.debug("Sorry, the file is not found."); - } + LOG.error("Sorry, the file is not found.", e); } catch (DocumentException e) { - if (LOG.isDebugEnabled()) { - LOG.debug("Sorry, the DocumentException is thrown."); - } + LOG.error("Sorry, the DocumentException is thrown.", e); } return resultPath;