Merge pull request #387 from bluepilledgreat/version-2.4.0-fix-warning

fix warning without disabling warning
This commit is contained in:
pizzaboxer 2023-07-16 13:50:44 +01:00 committed by GitHub
commit 02434d6a81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,16 +71,14 @@ namespace Bloxstrap
void FinalizeExceptionHandling(Exception exception) void FinalizeExceptionHandling(Exception exception)
{ {
#pragma warning disable 162
#if DEBUG #if DEBUG
throw exception; throw exception;
#endif #else
if (!IsQuiet) if (!IsQuiet)
Controls.ShowExceptionDialog(exception); Controls.ShowExceptionDialog(exception);
Terminate(ErrorCode.ERROR_INSTALL_FAILURE); Terminate(ErrorCode.ERROR_INSTALL_FAILURE);
#pragma warning restore 162 #endif
} }
protected override void OnStartup(StartupEventArgs e) protected override void OnStartup(StartupEventArgs e)