diff options
Diffstat (limited to 'win/C#/HandBrake.Framework')
-rw-r--r-- | win/C#/HandBrake.Framework/Services/ErrorService.cs | 4 | ||||
-rw-r--r-- | win/C#/HandBrake.Framework/Services/Interfaces/IErrorService.cs | 6 |
2 files changed, 8 insertions, 2 deletions
diff --git a/win/C#/HandBrake.Framework/Services/ErrorService.cs b/win/C#/HandBrake.Framework/Services/ErrorService.cs index 41372648d..3858f1674 100644 --- a/win/C#/HandBrake.Framework/Services/ErrorService.cs +++ b/win/C#/HandBrake.Framework/Services/ErrorService.cs @@ -35,7 +35,7 @@ namespace HandBrake.Framework.Services try
{
- Thread newThread = new Thread(new ParameterizedThreadStart(WriteExceptionToFile));
+ Thread newThread = new Thread(new ParameterizedThreadStart(this.LogError));
newThread.Start(shortError + Environment.NewLine + longError);
}
catch (Exception)
@@ -78,7 +78,7 @@ namespace HandBrake.Framework.Services /// <param name="state">
/// The state.
/// </param>
- public void WriteExceptionToFile(object state)
+ public void LogError(object state)
{
try
{
diff --git a/win/C#/HandBrake.Framework/Services/Interfaces/IErrorService.cs b/win/C#/HandBrake.Framework/Services/Interfaces/IErrorService.cs index 86d6f02d7..9eceead57 100644 --- a/win/C#/HandBrake.Framework/Services/Interfaces/IErrorService.cs +++ b/win/C#/HandBrake.Framework/Services/Interfaces/IErrorService.cs @@ -31,5 +31,11 @@ namespace HandBrake.Framework.Services.Interfaces /// Is a warning window, show the warning icon instead of the notice
/// </param>
void ShowNotice(string notice, bool isWarning);
+
+ /// <summary>
+ /// Log the error
+ /// </summary>
+ /// <param name="state">The error message</param>
+ void LogError(object state);
}
}
\ No newline at end of file |