whitespace

git-svn-id: https://svn.apache.org/repos/asf/ant/antlibs/antunit/trunk@437206 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Stefan Bodewig 2006-08-26 18:50:56 +00:00
parent 02166c52be
commit 48df64c11f
1 changed files with 6 additions and 4 deletions

View File

@ -164,10 +164,12 @@ public class AntUnit extends Task {
getProject().setNewProperty(errorProperty, "true"); getProject().setNewProperty(errorProperty, "true");
} }
if (failOnError) { if (failOnError) {
throw new BuildException(ERROR_TESTS_FAILED throw new BuildException(ERROR_TESTS_FAILED
+ failures + " failure" + (failures != 1 ? "s" : "") + failures + " failure"
+ " and " + (failures != 1 ? "s" : "")
+ errors + " error" + (errors != 1 ? "s" : "")); + " and "
+ errors + " error"
+ (errors != 1 ? "s" : ""));
} }
} }
} }