Console.Error.WriteLine("Unable to create session.");
return ErrorCodes.SessionCreationError;
}
- if (File.Exists(output.FullName))
- {
- Console.Error.WriteLine($"Unable to create file {output.FullName}. Try using -o or --output option to specify a different output file name.");
- return ErrorCodes.FileCreationError;
- }
+
var collectingTask = new Task(() => {
try
{
{
internal static class ErrorCodes
{
- public static int SessionCreationError = 1;
- public static int FileCreationError = 2;
- public static int TracingError = 3;
- public static int ArgumentError = 4;
- public static int UnknownError = 5;
+ public const int SessionCreationError = 1;
+ public const int TracingError = 2;
+ public const int ArgumentError = 3;
+ public const int UnknownError = 4;
}
}
\ No newline at end of file