From 2866fa7335eabc4371cb6909348a8db688c9f59d Mon Sep 17 00:00:00 2001 From: Jean-Philippe Bruyère Date: Tue, 28 Sep 2021 10:14:08 +0000 Subject: reset hello world, intermediateoutputpath set in Directory.Build.props was causing AppHost creation bug (wrong assembly) --- Samples/PerfTests/Program.cs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'Samples/PerfTests/Program.cs') diff --git a/Samples/PerfTests/Program.cs b/Samples/PerfTests/Program.cs index 17af6282..8ec252dd 100644 --- a/Samples/PerfTests/Program.cs +++ b/Samples/PerfTests/Program.cs @@ -130,17 +130,15 @@ namespace PerfTests break; case "--help": default: - throw new Exception (); + throw new Exception ("none"); } } - if (EndStage < StartStage) { - Console.WriteLine ($"Ending stage (){EndStage} is before Starting stage ({StartStage})"); - throw new Exception (); - } + if (EndStage < StartStage) + throw new Exception ($"Ending stage (){EndStage} is before Starting stage ({StartStage})"); - } catch (Exception) { + } catch (Exception e) { printHelp (); - throw; + throw e; } if (string.IsNullOrEmpty (outDir)) { @@ -525,9 +523,11 @@ namespace PerfTests iface.PerformTests (); } } catch (Exception e) { - Console.ForegroundColor = ConsoleColor.DarkRed; - Console.WriteLine (e); - Console.ResetColor (); + if (e.Message != "none") { + Console.ForegroundColor = ConsoleColor.DarkRed; + Console.WriteLine (e); + Console.ResetColor (); + } } } } -- cgit v1.3.1-4-g156e