From f2fe7245053cfc6a7ab9eaf0ed4b3e5903fb90f6 Mon Sep 17 00:00:00 2001 From: Luc Maisonobe Date: Fri, 10 Aug 2012 11:59:20 +0000 Subject: [PATCH] Forward the underlying error message when an exception is triggered. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1371671 13f79535-47bb-0310-9956-ffa450edef68 --- src/test/java/org/apache/commons/math3/PerfTestUtils.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/test/java/org/apache/commons/math3/PerfTestUtils.java b/src/test/java/org/apache/commons/math3/PerfTestUtils.java index b235534bb..6fd4860c0 100644 --- a/src/test/java/org/apache/commons/math3/PerfTestUtils.java +++ b/src/test/java/org/apache/commons/math3/PerfTestUtils.java @@ -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;