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()
41
41
}
42
42
43
43
/// <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
45
46
/// => Example: |Win32|LnkProgram|c:\..\chrome.exe|Permission denied on directory, but Wox should continue
46
47
/// </summary>
47
48
[ MethodImpl ( MethodImplOptions . Synchronized ) ]
Original file line number Diff line number Diff line change @@ -159,15 +159,15 @@ public static Application[] All()
159
159
#if ! DEBUG
160
160
catch ( Exception e )
161
161
{
162
- ProgramLogger . LogException ( "|UWP|All|An unexpected error occured and "
162
+ ProgramLogger . LogException ( $ "|UWP|All| { p . InstalledLocation } |An unexpected error occured and "
163
163
+ $ "unable to convert Package to UWP for { p . Id . FullName } ", e ) ;
164
164
return new Application [ ] { } ;
165
165
}
166
166
#endif
167
167
#if DEBUG //make developer aware and implement handling
168
- catch ( Exception )
168
+ catch ( Exception e )
169
169
{
170
- throw ;
170
+ throw e ;
171
171
}
172
172
#endif
173
173
return u . Apps ;
@@ -207,7 +207,7 @@ private static IEnumerable<Package> CurrentUserPackages()
207
207
}
208
208
catch ( Exception e )
209
209
{
210
- ProgramLogger . LogException ( "|UWP|CurrentUserPackages|An unexpected error occured and "
210
+ ProgramLogger . LogException ( "|UWP|CurrentUserPackages|Not available| An unexpected error occured and "
211
211
+ $ "unable to verify if package is valid", e ) ;
212
212
return false ;
213
213
}
You can’t perform that action at this time.
0 commit comments