From 807472918988416fc1e6577a319ffc8b311dafb1 Mon Sep 17 00:00:00 2001 From: Uwe Schindler Date: Tue, 3 Oct 2017 00:54:18 +0200 Subject: [PATCH] Make ANT error message more meaningful without "-verbose" --- src/main/java/de/thetaphi/forbiddenapis/ant/AntTask.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {