aboutsummaryrefslogtreecommitdiffstatsci
path: root/Samples/PerfTests/Program.cs
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2021-09-28 10:14:08 +0000
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2021-09-28 10:15:21 +0000
commit2866fa7335eabc4371cb6909348a8db688c9f59d (patch)
tree6b25c7214eac6cbf07c6654e1c4bf9ef052c84fd /Samples/PerfTests/Program.cs
parentc0fc101f87d4b4b55dbe7958d68e2a416e191217 (diff)
reset hello world, intermediateoutputpath set in Directory.Build.props was causing AppHost creation bug (wrong assembly)
Diffstat (limited to 'Samples/PerfTests/Program.cs')
-rw-r--r--Samples/PerfTests/Program.cs20
1 files changed, 10 insertions, 10 deletions
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 ();
+ }
}
}
}