cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1497874 - /cxf/web/src/main/java/org/apache/cxf/cwiki/Page.java
Date Fri, 28 Jun 2013 18:42:17 GMT
Author: dkulp
Date: Fri Jun 28 18:42:16 2013
New Revision: 1497874

URL: http://svn.apache.org/r1497874
Log:
Better warning message

Modified:
    cxf/web/src/main/java/org/apache/cxf/cwiki/Page.java

Modified: cxf/web/src/main/java/org/apache/cxf/cwiki/Page.java
URL: http://svn.apache.org/viewvc/cxf/web/src/main/java/org/apache/cxf/cwiki/Page.java?rev=1497874&r1=1497873&r2=1497874&view=diff
==============================================================================
--- cxf/web/src/main/java/org/apache/cxf/cwiki/Page.java (original)
+++ cxf/web/src/main/java/org/apache/cxf/cwiki/Page.java Fri Jun 28 18:42:16 2013
@@ -425,9 +425,10 @@ public class Page extends AbstractPage i
             for (String s : codeTypes) {
                 String sc = CODE_TYPE_MAP.get(s);
                 if (sc == null) {
-                    System.out.println("HELP: " + s);
+                    System.out.println("WARNING: no code highlighter for " + s);
+                } else {
+                    scripts.add(sc);
                 }
-                scripts.add(CODE_TYPE_MAP.get(s));
             }
         }
         if (scripts.isEmpty()) {



Mime
View raw message