JSDOC/TokenStream.vala
authorAlan Knowles <alan@roojs.com>
Tue, 27 Oct 2015 08:29:17 +0000 (16:29 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 27 Oct 2015 08:29:17 +0000 (16:29 +0800)
JSDOC/TokenStream.vala

index a5b3c1b..11b01fb 100644 (file)
@@ -165,7 +165,7 @@ namespace JSDOC {
                
                    //if (typeof howMany == "undefined") howMany = 1;
                    if (howMany < 2) { 
-                               throw new JSDOC.TokenStreamError("nextM called with wrong number : %d",howMany);
+                               throw new  TokenStreamError.ArgumentError("nextM called with wrong number : %d", 1 * howMany);
                    }
                    var got = new Gee.ArrayList<Token>();