Revision: 4833
          http://sourceforge.net/p/vexi/code/4833
Author:   mkpg2
Date:     2015-11-30 22:58:47 +0000 (Mon, 30 Nov 2015)
Log Message:
-----------
Improve Error Message. For not allowed text (e.g. script subtemplate node) Show 
text in error message.

Modified Paths:
--------------
    
branches/vexi3/org.vexi-core.main/src/main/java/org/vexi/core/VMLBuilder.java

Modified: 
branches/vexi3/org.vexi-core.main/src/main/java/org/vexi/core/VMLBuilder.java
===================================================================
--- 
branches/vexi3/org.vexi-core.main/src/main/java/org/vexi/core/VMLBuilder.java   
    2015-11-19 11:47:50 UTC (rev 4832)
+++ 
branches/vexi3/org.vexi-core.main/src/main/java/org/vexi/core/VMLBuilder.java   
    2015-11-30 22:58:47 UTC (rev 4833)
@@ -461,8 +461,11 @@
                 return;
             case STATE_IN_SUB_TEMPLATE_NODE:
             case STATE_IN_APPLY_NODE:
-                if (cb.content!=null && 
cb.content.toString().trim().length()>0) {
-                    throw e(c.getLocalName()+" element cannot have code/text");
+                if (cb.content!=null){
+                       String cts = cb.content.toString().trim(); 
+                       if(cts.length()>0) {
+                               throw e(c.getLocalName()+" element cannot have 
code/text:-\n"+cts);
+                       }
                 }
             }
             CodeBlock oldCb = cb;

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911&iu=/4140
_______________________________________________
Vexi-svn mailing list
Vexi-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to