mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 18:11: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)
|
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user