aboutsummaryrefslogtreecommitdiffstatsci
path: root/Samples/PerfTests/Program.cs
diff options
context:
space:
mode:
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 ();
+ }
}
}
}