]> SALOME platform Git repositories - tools/siman.git/commitdiff
Salome HOME
small correction.
authormka <mka@opencascade.com>
Tue, 19 Mar 2013 12:25:05 +0000 (12:25 +0000)
committermka <mka@opencascade.com>
Tue, 19 Mar 2013 12:25:05 +0000 (12:25 +0000)
Workspace/Siman-Common/src/org/splat/service/StudyServiceImpl.java

index 14145e9ae96b3772110318dd20d277d534cefbc6..9b7bd1c9bb719b4d0e5c8ef794084024ab06191b 100644 (file)
@@ -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;