loading JPS model: show file path in exception

This commit is contained in:
nik
2012-10-15 10:10:02 +04:00
parent 33d032adae
commit e1bfb9dc8b
@@ -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);
}
}