mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 10:01:27 -07:00
fix warning without disabling warning
This commit is contained in:
parent
0f1dd35efa
commit
1a084015d3
@ -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