diff --git a/java_console/inifile/src/main/java/com/rusefi/xml/XmlUtil.java b/java_console/inifile/src/main/java/com/rusefi/xml/XmlUtil.java index 524d574560..356c60bd27 100644 --- a/java_console/inifile/src/main/java/com/rusefi/xml/XmlUtil.java +++ b/java_console/inifile/src/main/java/com/rusefi/xml/XmlUtil.java @@ -41,7 +41,11 @@ public class XmlUtil { JAXBContext jaxbContext; jaxbContext = JAXBContext.newInstance(modelClass); Unmarshaller jaxbUnmarshaller = jaxbContext.createUnmarshaller(); - return (T) jaxbUnmarshaller.unmarshal(xmlFile); + try { + return (T) jaxbUnmarshaller.unmarshal(xmlFile); + } catch (Throwable e) { + throw new IllegalStateException("While reading " + xmlFile.getAbsolutePath(), e); + } } /**