fix warning without disabling warning

This commit is contained in:
bluepilledgreat 2023-07-16 13:47:45 +01:00
parent 0f1dd35efa
commit 1a084015d3

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)