Add error logging to ZuneHost

This commit is contained in:
Yoshi Askharoun
2026-07-27 11:01:20 -05:00
parent 9e78b3547f
commit bdbd3f79d9
+8
View File
@@ -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