mirror of
https://github.com/ZuneDev/ZuneShell.dll.git
synced 2026-07-27 13:11:51 -07:00
Add error logging to ZuneHost
This commit is contained in:
@@ -47,6 +47,8 @@ namespace ZuneHost
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Application.ErrorReport += ApplicationOnErrorReport;
|
||||
|
||||
Application.Initialized += delegate
|
||||
{
|
||||
@@ -75,6 +77,12 @@ namespace ZuneHost
|
||||
}
|
||||
}
|
||||
|
||||
private static void ApplicationOnErrorReport(Error[] errors)
|
||||
{
|
||||
foreach (var error in errors)
|
||||
Console.WriteLine(error);
|
||||
}
|
||||
|
||||
public static void CopyAll(DirectoryInfo source, DirectoryInfo target)
|
||||
{
|
||||
// Check if the target directory exists
|
||||
|
||||
Reference in New Issue
Block a user