mirror of
https://github.com/TheWhiteDog9487/lag2cn.git
synced 2026-10-07 08:31:15 +08:00
优化错误提示
This commit is contained in:
1 parent
0806f479d6
commit
aae4cb05d2
1 file changed
+2
-2
+2
-2
@@ -146,7 +146,7 @@ switch (CurrentSystem){
|
|||||||
ExecuteCommand("localectl", ["set-locale", "LANG=zh_CN.UTF-8"]);
|
ExecuteCommand("localectl", ["set-locale", "LANG=zh_CN.UTF-8"]);
|
||||||
|
|
||||||
if (IsRunningInsideWSL() && CurrentSystem == SupportedLinuxDistributions.AlmaLinux) {
|
if (IsRunningInsideWSL() && CurrentSystem == SupportedLinuxDistributions.AlmaLinux) {
|
||||||
Console.ForegroundColor = ConsoleColor.Red;
|
Console.ForegroundColor = ConsoleColor.Yellow;
|
||||||
Console.WriteLine();
|
Console.WriteLine();
|
||||||
Console.WriteLine("警告:检测到您正在WSL内使用AlmaLinux");
|
Console.WriteLine("警告:检测到您正在WSL内使用AlmaLinux");
|
||||||
Console.WriteLine("目前已知AlmaLinux的WSL镜像可能存在一些问题");
|
Console.WriteLine("目前已知AlmaLinux的WSL镜像可能存在一些问题");
|
||||||
@@ -157,7 +157,7 @@ switch (CurrentSystem){
|
|||||||
break; }
|
break; }
|
||||||
default: {
|
default: {
|
||||||
Console.ForegroundColor = ConsoleColor.Red;
|
Console.ForegroundColor = ConsoleColor.Red;
|
||||||
Console.WriteLine($"您当前使用的操作系统 {OsDescription} ,匹配名称 {CurrentSystem} 受到支持,但是lag2cn没有为其配置执行逻辑");
|
Console.WriteLine($"错误:您当前使用的操作系统 {OsDescription} ,匹配名称 {CurrentSystem} 受到支持,但是lag2cn没有为其配置执行逻辑");
|
||||||
Console.WriteLine("这是一个程序Bug,请前往Github仓库开启一个issue,并提供当前输出日志");
|
Console.WriteLine("这是一个程序Bug,请前往Github仓库开启一个issue,并提供当前输出日志");
|
||||||
Console.ResetColor();
|
Console.ResetColor();
|
||||||
throw new InvalidOperationException("遗漏的switch匹配"); } }
|
throw new InvalidOperationException("遗漏的switch匹配"); } }
|
||||||
|
|||||||
Reference in new issue
Block a user