From 9c469cef6bcb28bea7c7b3c0af7121d5de965a34 Mon Sep 17 00:00:00 2001 From: runeliza Date: Tue, 5 Jul 2011 18:50:18 +0000 Subject: [PATCH] Added error output to PatternSyntaxException. --- .../vitro/webapp/controller/SolrJsonReconcileServletTest.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webapp/test/edu/cornell/mannlib/vitro/webapp/controller/SolrJsonReconcileServletTest.java b/webapp/test/edu/cornell/mannlib/vitro/webapp/controller/SolrJsonReconcileServletTest.java index 2bbe42c31..04a717927 100644 --- a/webapp/test/edu/cornell/mannlib/vitro/webapp/controller/SolrJsonReconcileServletTest.java +++ b/webapp/test/edu/cornell/mannlib/vitro/webapp/controller/SolrJsonReconcileServletTest.java @@ -100,8 +100,9 @@ public class SolrJsonReconcileServletTest extends AbstractTestClass { Pattern regex = Pattern.compile(modStr); Matcher regexMatcher = regex.matcher(resultStr); Assert.assertTrue(message, regexMatcher.find()); - } catch (PatternSyntaxException ex) { + } catch (PatternSyntaxException e) { // Syntax error in the regular expression + System.err.println("SolrJsonReconcileServletTest testAssertTrue PatternSyntaxException: " + e); } } }