jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1380854 - /jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/parser/HtmlParsingUtils.java
Date Tue, 04 Sep 2012 20:25:42 GMT
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) {



Mime
View raw message