Skip to content

Instantly share code, notes, and snippets.

@migueldeicaza
Created January 26, 2010 08:12
Show Gist options
  • Save migueldeicaza/286662 to your computer and use it in GitHub Desktop.
Save migueldeicaza/286662 to your computer and use it in GitHub Desktop.
miguel@linux-bytm:/cvs/mcs/mcs> svn diff
Index: report.cs
===================================================================
--- report.cs (revision 150199)
+++ report.cs (working copy)
@@ -385,8 +385,10 @@
public void Error (int code, Location loc, string error)
{
- if (reporting_disabled > 0)
+ if (reporting_disabled > 0){
+ printer.MarkError ();
return;
+ }
ErrorMessage msg = new ErrorMessage (code, loc, error, extra_information);
extra_information.Clear ();
@@ -665,6 +667,11 @@
++errors;
}
+ public void MarkError ()
+ {
+ errors++;
+ }
+
protected void Print (AbstractMessage msg, TextWriter output)
{
StringBuilder txt = new StringBuilder ();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment