roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agillil...@apache.org
Subject svn commit: r554037 - /roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/themes/SharedThemeFromDir.java
Date Fri, 06 Jul 2007 20:01:45 GMT
Author: agilliland
Date: Fri Jul  6 13:01:44 2007
New Revision: 554037

URL: http://svn.apache.org/viewvc?view=rev&rev=554037
Log:
make sure that if a theme has trouble reading a template file then we want to throw an exception
and not include that theme in the library.


Modified:
    roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/themes/SharedThemeFromDir.java

Modified: roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/themes/SharedThemeFromDir.java
URL: http://svn.apache.org/viewvc/roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/themes/SharedThemeFromDir.java?view=diff&rev=554037&r1=554036&r2=554037
==============================================================================
--- roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/themes/SharedThemeFromDir.java
(original)
+++ roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/themes/SharedThemeFromDir.java
Fri Jul  6 13:01:44 2007
@@ -288,8 +288,7 @@
             String contents = loadTemplateFile(templateFile);
             if(contents == null) {
                 // if we don't have any contents then skip this one
-                log.error("Couldn't load theme template file ["+templateFile+"]");
-                continue;
+                throw new ThemeInitializationException("Couldn't load theme template file
["+templateFile+"]");
             }
             
             // construct ThemeTemplate representing this file



Mime
View raw message