JSDOC/TokenReader.vala
authorAlan Knowles <alan@roojs.com>
Tue, 15 Sep 2015 09:09:18 +0000 (17:09 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 15 Sep 2015 09:09:18 +0000 (17:09 +0800)
JSDOC/TokenReader.vala

index 66034d1..73134ad 100644 (file)
@@ -261,11 +261,11 @@ namespace JSDOC {
                 if (this.ignoreBadGrammer) {
                     print("\n" + this.filename + ':' + this.line + " Error - comma found before " + found);
                 } else {
-                    
-                    throw {
-                        name : "ArgumentError", 
-                        message: "\n" + this.filename + ':' + this.line + " Error - comma found before " + found
-                    }
+                    throw new TokenReader_Error.ArgumentError(
+                                this.filename + ":" + this.line + "  comma found before " + found
+                  
+                    );
+                     
                 }
             }