Add error message specification

This commit is contained in:
Jeremy Wu
2019-11-07 07:46:18 +11:00
parent 8a676c573a
commit 46274acb3e
2 changed files with 4 additions and 3 deletions

View File

@@ -41,7 +41,8 @@ namespace Wox.Plugin.Program.Logger
} }
/// <summary> /// <summary>
/// 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 /// => Example: |Win32|LnkProgram|c:\..\chrome.exe|Permission denied on directory, but Wox should continue
/// </summary> /// </summary>
[MethodImpl(MethodImplOptions.Synchronized)] [MethodImpl(MethodImplOptions.Synchronized)]

View File

@@ -163,9 +163,9 @@ namespace Wox.Plugin.Program.Programs
} }
#endif #endif
#if DEBUG //make developer aware and implement handling #if DEBUG //make developer aware and implement handling
catch(Exception) catch(Exception e)
{ {
throw; throw e;
} }
#endif #endif
return u.Apps; return u.Apps;