if typologies mapping fails, an exception will be propagated

This commit is contained in:
Enrico Ottonello 2020-10-22 14:36:18 +02:00
parent c3114ba0ae
commit 846ba30873
1 changed files with 2 additions and 2 deletions

View File

@ -97,8 +97,8 @@ public class PublicationToOaf implements Serializable {
.getResourceAsStream( .getResourceAsStream(
"/eu/dnetlib/dhp/doiboost/orcidnodoi/mappings/typologies.json")); "/eu/dnetlib/dhp/doiboost/orcidnodoi/mappings/typologies.json"));
typologiesMapping = new Gson().fromJson(tt, Map.class); typologiesMapping = new Gson().fromJson(tt, Map.class);
} catch (final Exception e) { } catch (Exception e) {
logger.error("loading typologies", e); throw new RuntimeException("loading typologies", e);
} }
} }