mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
C#: Add alert suppression comments. Rename e to ex in catch clauses for consistency.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user