File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
Plugins/Wox.Plugin.Program Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,8 @@ static ProgramLogger()
4141 }
4242
4343 /// <summary>
44- /// Please follow exception format: |class name|calling method name|loading program path|user friendly message that explains the error
44+ /// Please follow exception format, there are four parts to an error message that need to be specified:
45+ /// |class name|calling method name|loading program path|user friendly message that explains the error
4546 /// => Example: |Win32|LnkProgram|c:\..\chrome.exe|Permission denied on directory, but Wox should continue
4647 /// </summary>
4748 [ MethodImpl ( MethodImplOptions . Synchronized ) ]
Original file line number Diff line number Diff line change @@ -159,15 +159,15 @@ public static Application[] All()
159159#if ! DEBUG
160160 catch ( Exception e )
161161 {
162- ProgramLogger . LogException ( "|UWP|All|An unexpected error occured and "
162+ ProgramLogger . LogException ( $ "|UWP|All| { p . InstalledLocation } |An unexpected error occured and "
163163 + $ "unable to convert Package to UWP for { p . Id . FullName } ", e ) ;
164164 return new Application [ ] { } ;
165165 }
166166#endif
167167#if DEBUG //make developer aware and implement handling
168- catch ( Exception )
168+ catch ( Exception e )
169169 {
170- throw ;
170+ throw e ;
171171 }
172172#endif
173173 return u . Apps ;
@@ -207,7 +207,7 @@ private static IEnumerable<Package> CurrentUserPackages()
207207 }
208208 catch ( Exception e )
209209 {
210- ProgramLogger . LogException ( "|UWP|CurrentUserPackages|An unexpected error occured and "
210+ ProgramLogger . LogException ( "|UWP|CurrentUserPackages|Not available| An unexpected error occured and "
211211 + $ "unable to verify if package is valid", e ) ;
212212 return false ;
213213 }
You can’t perform that action at this time.
0 commit comments