diff --git a/src/modules/espresso/Espresso.Shell/Core/APIHelper.cs b/src/modules/espresso/Espresso.Shell/Core/APIHelper.cs index 1b8931df37..879d0f2b27 100644 --- a/src/modules/espresso/Espresso.Shell/Core/APIHelper.cs +++ b/src/modules/espresso/Espresso.Shell/Core/APIHelper.cs @@ -33,7 +33,10 @@ namespace Espresso.Shell.Core { try { - bool stateSettingSucceeded = (SetThreadExecutionState(state) != 0); + var stateResult = SetThreadExecutionState(state); + bool stateSettingSucceeded = (stateResult != 0); + Console.WriteLine($"State setting result: {stateResult}"); + if (stateSettingSucceeded) { return true; diff --git a/src/modules/espresso/Espresso.Shell/Program.cs b/src/modules/espresso/Espresso.Shell/Program.cs index b6b1e213bf..bbe9b84f5f 100644 --- a/src/modules/espresso/Espresso.Shell/Program.cs +++ b/src/modules/espresso/Espresso.Shell/Program.cs @@ -239,7 +239,8 @@ namespace Espresso.Shell } catch (Exception ex) { - ForceExit($"There was a problem reading the configuration file.\n{ex.Message}", 1); + Console.WriteLine($"There was a problem reading the configuration file.\n{ex.Message}"); + //ForceExit($"There was a problem reading the configuration file.\n{ex.Message}", 1); } }