From aae4cb05d2af55e2f93f602e671ddfcdeceec29f Mon Sep 17 00:00:00 2001 From: TheWhiteDog9487 Date: Thu, 13 Aug 2026 17:06:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=94=99=E8=AF=AF=E6=8F=90?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- language.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/language.cs b/language.cs index 3a8c71e..e44d3b5 100644 --- a/language.cs +++ b/language.cs @@ -146,7 +146,7 @@ switch (CurrentSystem){ ExecuteCommand("localectl", ["set-locale", "LANG=zh_CN.UTF-8"]); if (IsRunningInsideWSL() && CurrentSystem == SupportedLinuxDistributions.AlmaLinux) { - Console.ForegroundColor = ConsoleColor.Red; + Console.ForegroundColor = ConsoleColor.Yellow; Console.WriteLine(); Console.WriteLine("警告:检测到您正在WSL内使用AlmaLinux"); Console.WriteLine("目前已知AlmaLinux的WSL镜像可能存在一些问题"); @@ -157,7 +157,7 @@ switch (CurrentSystem){ break; } default: { Console.ForegroundColor = ConsoleColor.Red; - Console.WriteLine($"您当前使用的操作系统 {OsDescription} ,匹配名称 {CurrentSystem} 受到支持,但是lag2cn没有为其配置执行逻辑"); + Console.WriteLine($"错误:您当前使用的操作系统 {OsDescription} ,匹配名称 {CurrentSystem} 受到支持,但是lag2cn没有为其配置执行逻辑"); Console.WriteLine("这是一个程序Bug,请前往Github仓库开启一个issue,并提供当前输出日志"); Console.ResetColor(); throw new InvalidOperationException("遗漏的switch匹配"); } }