From 8974fb7ae8b3b479e99e1622b24c8b664dc28b1d Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Thu, 1 Jul 2010 18:34:27 +1200 Subject: [PATCH] hack the RALint output format so VS shows errors as errors. Source position would be nice too, but that requires actual work. --- RALint/Program.cs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/RALint/Program.cs b/RALint/Program.cs index 2b3be11ad6..02953b8f53 100644 --- a/RALint/Program.cs +++ b/RALint/Program.cs @@ -1,12 +1,10 @@ using System; using System.Collections.Generic; -using System.Linq; -using System.Text; -using OpenRA.FileFormats; +using System.Reflection; using OpenRA; +using OpenRA.FileFormats; using OpenRA.GameRules; using OpenRA.Traits; -using System.Reflection; namespace RALint { @@ -30,7 +28,7 @@ namespace RALint static void EmitError(string e) { - Console.WriteLine(e); + Console.WriteLine("RALint(1,1): Error: {0}", e); ++errors; }