You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by pm...@apache.org on 2012/09/04 22:25:42 UTC

svn commit: r1380854 - /jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/parser/HtmlParsingUtils.java

Author: pmouawad
Date: Tue Sep  4 20:25:42 2012
New Revision: 1380854

URL: http://svn.apache.org/viewvc?rev=1380854&view=rev
Log:
Cascade exception

Modified:
    jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/parser/HtmlParsingUtils.java

Modified: jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/parser/HtmlParsingUtils.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/parser/HtmlParsingUtils.java?rev=1380854&r1=1380853&r2=1380854&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/parser/HtmlParsingUtils.java (original)
+++ jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/parser/HtmlParsingUtils.java Tue Sep  4 20:25:42 2012
@@ -78,7 +78,7 @@ public final class HtmlParsingUtils {
         } catch (UnsupportedEncodingException e) {
             // UTF-8 unsupported? You must be joking!
             log.error("UTF-8 encoding not supported!");
-            throw new Error("Should not happen: " + e.toString());
+            throw new Error("Should not happen: " + e.toString(), e);
         }
 
         final Arguments arguments = config.getArguments();
@@ -242,7 +242,7 @@ public final class HtmlParsingUtils {
         } catch (UnsupportedEncodingException e) {
             log.error("getDOM1 : Unsupported encoding exception - " + e);
             log.debug("End : getDOM1");
-            throw new RuntimeException("UTF-8 encoding failed");
+            throw new RuntimeException("UTF-8 encoding failed", e);
         }
     }
 
@@ -372,8 +372,7 @@ public final class HtmlParsingUtils {
             throw new MalformedURLException();
         }
         String action = atts.getNamedItem("action").getNodeValue(); // $NON-NLS-1$
-        HTTPSamplerBase url = createUrlFromAnchor(action, context);
-        return url;
+        return createUrlFromAnchor(action, context);
     }
 
     public static void extractStyleURLs(final URL baseUrl, final URLCollection urls, String styleTagStr) {