mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Make debug mode clearer during exception
This commit is contained in:
parent
c5dc21dcc7
commit
62c11a09c5
1 changed files with 4 additions and 10 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue