Make debug mode clearer during exception

This commit is contained in:
Jeremy Wu 2020-03-22 19:52:16 +11:00
parent c5dc21dcc7
commit 62c11a09c5

View file

@ -40,14 +40,11 @@ namespace Wox.Core.Configuration
}
catch (Exception e)
{
#if DEBUG
portabilityUpdater.Dispose();
throw;
#else
portabilityUpdater.Dispose();
#if !DEBUG
Log.Exception("Portable", "Error occured while disabling portable mode", e);
throw;
#endif
throw;
}
}
@ -76,14 +73,11 @@ namespace Wox.Core.Configuration
}
catch (Exception e)
{
#if DEBUG
portabilityUpdater.Dispose();
throw;
#else
portabilityUpdater.Dispose();
#if !DEBUG
Log.Exception("Portable", "Error occured while enabling portable mode", e);
throw;
#endif
throw;
}
}