]> gerrit.simantics Code Review - simantics/district.git/commitdiff
Add proper exception handling for CSV import
authorJaniSimomaa <JaniSimomaa@DESKTOP-91EJL8G>
Mon, 8 Jul 2019 08:05:08 +0000 (11:05 +0300)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Sat, 31 Aug 2019 20:08:43 +0000 (23:08 +0300)
gitlab #52

Change-Id: I0de534bdb48af2cca44c9d84ff9893f32cba7c09

org.simantics.district.imports/src/org/simantics/district/imports/DistrictImportUtils.java

index a1794b6a8a0e7a67c8bca2bb6d3e4e9a04474ce8..b3b997b3ef3303104382247a6842880782290355 100644 (file)
@@ -347,7 +347,8 @@ public class DistrictImportUtils {
                     });
                     
                 } catch (IOException e) {
-                    e.printStackTrace();
+                    LOGGER.error("Could not import", e);
+                    throw new DatabaseException(e);
                 } finally {
                     Layer0Utils.setDependenciesIndexingDisabled(graph, false);
                 }