Add filename to exception
This commit is contained in:
@@ -42,7 +42,7 @@ class PomReader {
|
||||
return xpp3Reader.read(reader);
|
||||
}
|
||||
catch (XmlPullParserException | IOException e) {
|
||||
throw new IllegalStateException("Failed to read file", e);
|
||||
throw new IllegalStateException("Failed to read file: "+pom.getAbsolutePath(), e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user