From: JaniSimomaa Date: Mon, 8 Jul 2019 08:05:08 +0000 (+0300) Subject: Add proper exception handling for CSV import X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F09%2F3009%2F1;p=simantics%2Fdistrict.git Add proper exception handling for CSV import gitlab #52 Change-Id: I0de534bdb48af2cca44c9d84ff9893f32cba7c09 --- diff --git a/org.simantics.district.imports/src/org/simantics/district/imports/DistrictImportUtils.java b/org.simantics.district.imports/src/org/simantics/district/imports/DistrictImportUtils.java index a1794b6a..b3b997b3 100644 --- a/org.simantics.district.imports/src/org/simantics/district/imports/DistrictImportUtils.java +++ b/org.simantics.district.imports/src/org/simantics/district/imports/DistrictImportUtils.java @@ -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); }