src/Palete/VapiParser.vala
authorAlan Knowles <alan@roojs.com>
Sun, 17 May 2015 04:48:15 +0000 (12:48 +0800)
committerAlan Knowles <alan@roojs.com>
Sun, 17 May 2015 04:48:15 +0000 (12:48 +0800)
src/Palete/VapiParser.vala

index ec0bb04..c3aad3d 100644 (file)
@@ -352,7 +352,7 @@ namespace Palete {
                        //gir_parser.parse (context);
                        if (context.report.get_errors () > 0) {
                                
-                               throw new 
+                               throw new VapiParserError.PARSE_FAILED("failed parse VAPIS, so we can not write file correctly");
                                
                                print("parse got errors");
                                 
@@ -367,7 +367,7 @@ namespace Palete {
                        context.check ();
                        if (context.report.get_errors () > 0) {
                                print("check got errors");
-                                
+                                throw new VapiParserError.PARSE_FAILED("failed check VAPIS, so we can not write file correctly");
                                Vala.CodeContext.pop ();
                                 
                                return;