From 5d4c6addf52d43381eb80db33fec122366a73abd Mon Sep 17 00:00:00 2001 From: JaniSimomaa Date: Mon, 8 Jul 2019 11:05:08 +0300 Subject: [PATCH] Add proper exception handling for CSV import gitlab #52 Change-Id: I0de534bdb48af2cca44c9d84ff9893f32cba7c09 --- .../org/simantics/district/imports/DistrictImportUtils.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } -- 2.47.1