JSDOC/TokenStream.vala
authorAlan Knowles <alan@roojs.com>
Wed, 30 Sep 2015 10:08:20 +0000 (18:08 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 30 Sep 2015 10:08:20 +0000 (18:08 +0800)
JSDOC/TokenStream.vala

index 1bcbea9..420d5d0 100644 (file)
@@ -215,9 +215,9 @@ namespace JSDOC {
                    if (stop=="") {
                                stop = Lang.matching(start);
                        }
-                       if (stop == null || stop == "") {
-                               throw new JSDOC.TokenStreamError("balance called with invalid stop : %d",howMany);
-                       
+                       if (stop == null) {
+                               throw new JSDOC.TokenStreamError("balance called with invalid start/stop : %s",start);
+                       }
                    
                    var depth = 0;
                    var got = [];