Skip to content

Commit 46274ac

Browse files
committed
Add error message specification
1 parent 8a676c5 commit 46274ac

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,9 @@ public static Application[] All()
163163
}
164164
#endif
165165
#if DEBUG //make developer aware and implement handling
166-
catch(Exception)
166+
catch(Exception e)
167167
{
168-
throw;
168+
throw e;
169169
}
170170
#endif
171171
return u.Apps;

0 commit comments

Comments
 (0)