From 13a4b5c6c5bf442aefc375e253bcc92095e38c7b Mon Sep 17 00:00:00 2001 From: Daniel-I-Am Date: Sun, 14 Mar 2021 18:03:18 +0100 Subject: [PATCH] Add correct exit code to catch --- ChaosBot/Program.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ChaosBot/Program.cs b/ChaosBot/Program.cs index 0567613..8753e13 100644 --- a/ChaosBot/Program.cs +++ b/ChaosBot/Program.cs @@ -35,7 +35,7 @@ namespace ChaosBot catch (Exception ex) { Console.Write($"{MethodBase.GetCurrentMethod()?.ReflectedType?.FullName}: Exception [{ex}] thrown, <[{ex.Message}]>.\n{ex.StackTrace}"); - return; + Environment.Exit(1); } /* @@ -53,6 +53,7 @@ namespace ChaosBot catch (Exception ex) { LoggingFacade.Exception(ex); + Environment.Exit(1); } }