From c8962ffb8efd85744361d653d2c8bcc8c51e421e Mon Sep 17 00:00:00 2001 From: c0nstexpr <976999484@qq.com> Date: Sat, 28 Sep 2024 13:20:55 +0800 Subject: [PATCH] feat(server-menu): add exception info to log output Provide more specific error message when zerotier server failed to join --- RageCoop.Client/Menus/Sub/ServersMenu.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/RageCoop.Client/Menus/Sub/ServersMenu.cs b/RageCoop.Client/Menus/Sub/ServersMenu.cs index a15f44da..adb9e934 100644 --- a/RageCoop.Client/Menus/Sub/ServersMenu.cs +++ b/RageCoop.Client/Menus/Sub/ServersMenu.cs @@ -102,10 +102,11 @@ private static void GetAllServers() } catch (Exception ex) { + Main.Logger.Error(ex); Notification.PostTicker($"~r~{ex.Message}", false); if (server.useZT) { - Notification.PostTicker($"Make sure ZeroTier is correctly installed, download it from https://www.zerotier.com/", false); + Notification.PostTicker($"Make sure ZeroTier is correctly installed, download it from https://www.zerotier.com/. \nCheck the log file, which under folder \"Grand Theft Auto V/Scripts/RageCoop/Data\", for more details.", false); } } }; @@ -136,4 +137,4 @@ private static string DownloadString(string url) } } } -} \ No newline at end of file +}