C#: Add alert suppression comments. Rename e to ex in catch clauses for consistency.

This commit is contained in:
calum
2019-01-11 12:32:24 +00:00
parent fb0cae87a8
commit a44a86bf6f
14 changed files with 31 additions and 31 deletions

View File

@@ -74,9 +74,9 @@ namespace Semmle.Util.Logging
FileShare.ReadWrite, 8192));
writer.AutoFlush = true;
}
catch (Exception e)
catch (Exception ex) // lgtm[cs/catch-of-all-exceptions]
{
Console.Error.WriteLine("SEMMLE: Couldn't initialise C# extractor output: " + e.Message + "\n" + e.StackTrace);
Console.Error.WriteLine("SEMMLE: Couldn't initialise C# extractor output: " + ex.Message + "\n" + ex.StackTrace);
Console.Error.Flush();
throw;
}