mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 10:01:27 -07:00
Merge pull request #387 from bluepilledgreat/version-2.4.0-fix-warning
fix warning without disabling warning
This commit is contained in:
commit
02434d6a81
@ -71,16 +71,14 @@ namespace Bloxstrap
|
||||
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user