Skip to content

Commit

Permalink
fix warning without disabling warning
Browse files Browse the repository at this point in the history
  • Loading branch information
bluepilledgreat committed Jul 16, 2023
1 parent 0f1dd35 commit 1a08401
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Bloxstrap/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,16 +71,14 @@ void GlobalExceptionHandler(object sender, DispatcherUnhandledExceptionEventArgs

void FinalizeExceptionHandling(Exception exception)
{
#pragma warning disable 162
#if DEBUG
throw exception;
#endif

#else
if (!IsQuiet)
Controls.ShowExceptionDialog(exception);

Terminate(ErrorCode.ERROR_INSTALL_FAILURE);
#pragma warning restore 162
#endif
}

protected override void OnStartup(StartupEventArgs e)
Expand Down

0 comments on commit 1a08401

Please sign in to comment.