Added error output to PatternSyntaxException.

This commit is contained in:
runeliza 2011-07-05 18:50:18 +00:00
parent a839bdcc02
commit 9c469cef6b

View file

@ -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);
}
}
}