cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject cvs commit: cocoon-2.1/src/java/org/apache/cocoon/components CocoonComponentManager.java
Date Thu, 09 Oct 2003 07:09:59 GMT
cziegeler    2003/10/09 00:09:59

  Modified:    src/java/org/apache/cocoon/components
                        CocoonComponentManager.java
  Log:
  Throw an exception so we get more feedback if it works or not
  
  Revision  Changes    Path
  1.18      +7 -3      cocoon-2.1/src/java/org/apache/cocoon/components/CocoonComponentManager.java
  
  Index: CocoonComponentManager.java
  ===================================================================
  RCS file: /home/cvs/cocoon-2.1/src/java/org/apache/cocoon/components/CocoonComponentManager.java,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- CocoonComponentManager.java	8 Oct 2003 20:18:34 -0000	1.17
  +++ CocoonComponentManager.java	9 Oct 2003 07:09:59 -0000	1.18
  @@ -186,11 +186,15 @@
           } 
       }
       
  -    public static void checkEnvironment(Logger logger) {
  +    public static void checkEnvironment(Logger logger) 
  +    throws Exception {
           // TODO (CZ): This is only for testing - remove it later on
           final EnvironmentStack stack = (EnvironmentStack)environmentStack.get();
           if (stack != null && !stack.isEmpty() ) {
  -            logger.error("ENVIRONMENT STACK HAS NOT BEEN CLEANED PROPERLY");        
  +            logger.error("ENVIRONMENT STACK HAS NOT BEEN CLEANED PROPERLY");   
  +            throw new ProcessingException("Environment stack has not been cleaned up properly.
"
  +                                          +"Please report this (if possible together with
a test case) "
  +                                          +"to the Cocoon developers.");     
           }
       }
   
  
  
  

Mime
View raw message