Skip to content

Commit d818a15

Browse files
committed
Merge branch 'master' into dev
2 parents 62bbe39 + 6a664d9 commit d818a15

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

Plugins/Wox.Plugin.Program/Logger/ProgramLogger.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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)]

Plugins/Wox.Plugin.Program/Programs/UWP.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)