diff --git a/src/main/java/de/thetaphi/forbiddenapis/ant/AntTask.java b/src/main/java/de/thetaphi/forbiddenapis/ant/AntTask.java index f33d8ee2..c19d818f 100644 --- a/src/main/java/de/thetaphi/forbiddenapis/ant/AntTask.java +++ b/src/main/java/de/thetaphi/forbiddenapis/ant/AntTask.java @@ -168,7 +168,7 @@ public void info(String msg) { } } } catch (IOException ioe) { - throw new BuildException("IO problem while reading files with API signatures.", ioe); + throw new BuildException("IO problem while reading files with API signatures: " + ioe.getMessage(), ioe); } catch (ParseException pe) { throw new BuildException("Parsing signatures failed: " + pe.getMessage(), pe); } @@ -201,7 +201,7 @@ public void info(String msg) { } } } catch (IOException ioe) { - throw new BuildException("Failed to load one of the given class files.", ioe); + throw new BuildException("Failed to load one of the given class files: " + ioe.getMessage(), ioe); } try {