From 60e3985923c28f91fbfbdfd890af34a545b02ff3 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