diff --git a/jps/model-serialization/src/org/jetbrains/jps/model/serialization/JpsLoaderBase.java b/jps/model-serialization/src/org/jetbrains/jps/model/serialization/JpsLoaderBase.java index 6f387c9c5b62..3ab42c66b981 100644 --- a/jps/model-serialization/src/org/jetbrains/jps/model/serialization/JpsLoaderBase.java +++ b/jps/model-serialization/src/org/jetbrains/jps/model/serialization/JpsLoaderBase.java @@ -50,10 +50,10 @@ public abstract class JpsLoaderBase { return element; } catch (JDOMException e) { - throw new RuntimeException(e); + throw new RuntimeException("Cannot parse xml file " + file.getAbsolutePath() + ": " + e.getMessage(), e); } catch (IOException e) { - throw new RuntimeException(e); + throw new RuntimeException("Cannot read file " + file.getAbsolutePath() + ": " + e.getMessage(), e); } }