diff --git a/Plugins/Wox.Plugin.Program/Logger/ProgramLogger.cs b/Plugins/Wox.Plugin.Program/Logger/ProgramLogger.cs index c803896ce..e3dec0dfa 100644 --- a/Plugins/Wox.Plugin.Program/Logger/ProgramLogger.cs +++ b/Plugins/Wox.Plugin.Program/Logger/ProgramLogger.cs @@ -41,7 +41,8 @@ namespace Wox.Plugin.Program.Logger } /// - /// Please follow exception format: |class name|calling method name|loading program path|user friendly message that explains the error + /// Please follow exception format, there are four parts to an error message that need to be specified: + /// |class name|calling method name|loading program path|user friendly message that explains the error /// => Example: |Win32|LnkProgram|c:\..\chrome.exe|Permission denied on directory, but Wox should continue /// [MethodImpl(MethodImplOptions.Synchronized)] diff --git a/Plugins/Wox.Plugin.Program/Programs/UWP.cs b/Plugins/Wox.Plugin.Program/Programs/UWP.cs index 40482bf8d..60f978b9d 100644 --- a/Plugins/Wox.Plugin.Program/Programs/UWP.cs +++ b/Plugins/Wox.Plugin.Program/Programs/UWP.cs @@ -159,15 +159,15 @@ namespace Wox.Plugin.Program.Programs #if !DEBUG catch (Exception e) { - ProgramLogger.LogException("|UWP|All|An unexpected error occured and " + ProgramLogger.LogException($"|UWP|All|{p.InstalledLocation}|An unexpected error occured and " + $"unable to convert Package to UWP for {p.Id.FullName}", e); return new Application[] { }; } #endif #if DEBUG //make developer aware and implement handling - catch(Exception) + catch(Exception e) { - throw; + throw e; } #endif return u.Apps; @@ -207,7 +207,7 @@ namespace Wox.Plugin.Program.Programs } catch (Exception e) { - ProgramLogger.LogException("|UWP|CurrentUserPackages|An unexpected error occured and " + ProgramLogger.LogException("|UWP|CurrentUserPackages|Not available|An unexpected error occured and " + $"unable to verify if package is valid", e); return false; }