Revision: 952 http://jwebunit.svn.sourceforge.net/jwebunit/?rev=952&view=rev Author: jevonwright Date: 2012-08-16 02:55:26 +0000 (Thu, 16 Aug 2012) Log Message: ----------- when a MultiException is thrown, the first exception will now be displayed as part of the log message (to play better with Maven, which wasn't displaying any of the contained exceptions)
Modified Paths: -------------- trunk/jwebunit-webdriver-plugin/src/main/java/net/sourceforge/jwebunit/webdriver/WebDriverTestingEngineImpl.java Modified: trunk/jwebunit-webdriver-plugin/src/main/java/net/sourceforge/jwebunit/webdriver/WebDriverTestingEngineImpl.java =================================================================== --- trunk/jwebunit-webdriver-plugin/src/main/java/net/sourceforge/jwebunit/webdriver/WebDriverTestingEngineImpl.java 2012-08-16 01:26:46 UTC (rev 951) +++ trunk/jwebunit-webdriver-plugin/src/main/java/net/sourceforge/jwebunit/webdriver/WebDriverTestingEngineImpl.java 2012-08-16 02:55:26 UTC (rev 952) @@ -59,6 +59,7 @@ import org.apache.regexp.RE; import org.apache.regexp.RESyntaxException; import org.browsermob.proxy.ProxyServer; +import org.browsermob.proxy.jetty.util.MultiException; import org.openqa.selenium.By; import org.openqa.selenium.Cookie; import org.openqa.selenium.JavascriptExecutor; @@ -182,7 +183,11 @@ } catch (Exception e) { if (i<TRY_COUNT) { - logger.error("Error while starting BrowserMob proxy. Retry...", e); + logger.error("Error while starting BrowserMob proxy on port " + port + ". Retry...: " + e.getMessage(), e); + if (e instanceof MultiException) { + Exception e1 = ((MultiException) e).getException(0); + logger.error("First exception: " + e1.getMessage(), e1); + } continue; } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ JWebUnit-development mailing list JWebUnit-development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jwebunit-development