From 3b215d6e6583825828198ffbfd529f672980f873 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 29 Apr 2015 21:39:36 +0800 Subject: [PATCH] src/Palete/ValaSource.vala --- src/Palete/ValaSource.vala | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Palete/ValaSource.vala b/src/Palete/ValaSource.vala index 9e5142954..ad43975d3 100644 --- a/src/Palete/ValaSource.vala +++ b/src/Palete/ValaSource.vala @@ -324,7 +324,9 @@ namespace Palete { if (context.report.get_errors () > 0) { print("parse got errors"); ((ValaSourceReport)context.report).dump(); + Vala.CodeContext.pop (); + this.file.compile_notice("END", "", 0, ""); return this.report.line_errors; } @@ -336,6 +338,7 @@ namespace Palete { print("check got errors"); ((ValaSourceReport)context.report).dump(); Vala.CodeContext.pop (); + this.file.compile_notice("END", "", 0, ""); return this.report.line_errors; } @@ -358,6 +361,7 @@ namespace Palete { */ Vala.CodeContext.pop (); + this.file.compile_notice("END", "", 0, ""); print("%s\n", valac); print("ALL OK?\n"); return this.report.line_errors; -- 2.39.2