You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by re...@apache.org on 2009/05/27 00:40:00 UTC

svn commit: r778915 - /cocoon/cocoon3/trunk/cocoon-sax/src/main/java/org/apache/cocoon/sax/component/IncludeTransformer.java

Author: reinhard
Date: Tue May 26 22:40:00 2009
New Revision: 778915

URL: http://svn.apache.org/viewvc?rev=778915&view=rev
Log:
don't log twice

Modified:
    cocoon/cocoon3/trunk/cocoon-sax/src/main/java/org/apache/cocoon/sax/component/IncludeTransformer.java

Modified: cocoon/cocoon3/trunk/cocoon-sax/src/main/java/org/apache/cocoon/sax/component/IncludeTransformer.java
URL: http://svn.apache.org/viewvc/cocoon/cocoon3/trunk/cocoon-sax/src/main/java/org/apache/cocoon/sax/component/IncludeTransformer.java?rev=778915&r1=778914&r2=778915&view=diff
==============================================================================
--- cocoon/cocoon3/trunk/cocoon-sax/src/main/java/org/apache/cocoon/sax/component/IncludeTransformer.java (original)
+++ cocoon/cocoon3/trunk/cocoon-sax/src/main/java/org/apache/cocoon/sax/component/IncludeTransformer.java Tue May 26 22:40:00 2009
@@ -55,9 +55,7 @@
 
         String sourceAtt = atts.getValue(SRC_ATTR);
         if (null == sourceAtt || "".equals(sourceAtt)) {
-            String message = "The <include> element must contain a 'src' attribute that contains a URL.";
-            this.logger.error(message);
-            throw new ProcessingException(message);
+            throw new ProcessingException("The <include> element must contain a 'src' attribute that contains a URL.");
         }
 
         try {
@@ -73,9 +71,7 @@
 
             return;
         } catch (IOException e) {
-            String message = "Can't read from URL " + sourceAtt;
-            this.logger.error(message, e);
-            throw new ProcessingException(message, e);
+            throw new ProcessingException(("Can't read from URL " + sourceAtt), e);
         }
     }
 
@@ -93,9 +89,7 @@
 
             return source;
         } catch (MalformedURLException e) {
-            String message = "Can't parse URL " + sourceAtt;
-            this.logger.error(message, e);
-            throw new ProcessingException(message, e);
+            throw new ProcessingException(("Can't parse URL " + sourceAtt), e);
         }
     }