From 32d500cc44a9ab56ffd316286273edb418f77fe4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Pfeuffer?= Date: Tue, 15 Sep 2020 15:15:12 +0200 Subject: [PATCH] Add root exception to new exception This is needed to get an idea why the context could not be created. --- .../src/main/java/sonia/scm/store/TypedStoreContext.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scm-dao-xml/src/main/java/sonia/scm/store/TypedStoreContext.java b/scm-dao-xml/src/main/java/sonia/scm/store/TypedStoreContext.java index 58e3e1efdc..224946040d 100644 --- a/scm-dao-xml/src/main/java/sonia/scm/store/TypedStoreContext.java +++ b/scm-dao-xml/src/main/java/sonia/scm/store/TypedStoreContext.java @@ -48,7 +48,7 @@ final class TypedStoreContext { JAXBContext jaxbContext = JAXBContext.newInstance(parameters.getType()); return new TypedStoreContext<>(jaxbContext, parameters); } catch (JAXBException e) { - throw new StoreException("failed to create context for store"); + throw new StoreException("failed to create context for store", e); } }