Author: luc Date: Fri Aug 10 11:59:20 2012 New Revision: 1371671 URL: http://svn.apache.org/viewvc?rev=1371671&view=rev Log: Forward the underlying error message when an exception is triggered.
Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/PerfTestUtils.java Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/PerfTestUtils.java URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/PerfTestUtils.java?rev=1371671&r1=1371670&r2=1371671&view=diff ============================================================================== --- commons/proper/math/trunk/src/test/java/org/apache/commons/math3/PerfTestUtils.java (original) +++ commons/proper/math/trunk/src/test/java/org/apache/commons/math3/PerfTestUtils.java Fri Aug 10 11:59:20 2012 @@ -21,6 +21,7 @@ import java.util.concurrent.Callable; import org.apache.commons.math3.stat.descriptive.SummaryStatistics; import org.apache.commons.math3.stat.descriptive.StatisticalSummary; import org.apache.commons.math3.exception.MathIllegalStateException; +import org.apache.commons.math3.exception.util.LocalizedFormats; /** * Simple benchmarking utilities. @@ -126,7 +127,7 @@ public class PerfTestUtils { } } catch (Exception e) { // Abort benchmarking if codes throw exceptions. - throw new MathIllegalStateException(); + throw new MathIllegalStateException(LocalizedFormats.SIMPLE_MESSAGE, e.getMessage()); } final double normFactor = 1d / repeatChunk;