From e1bfb9dc8b76b2803172a0a95d4ece12de66fbc3 Mon Sep 17 00:00:00 2001 From: nik Date: Fri, 12 Oct 2012 17:41:51 +0400 Subject: [PATCH] loading JPS model: show file path in exception --- .../org/jetbrains/jps/model/serialization/JpsLoaderBase.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } }