diff --git a/Class/TcpServer.cs b/Class/TcpServer.cs index 71b2100..6c56ed5 100644 --- a/Class/TcpServer.cs +++ b/Class/TcpServer.cs @@ -68,7 +68,7 @@ namespace SunlightAggregationTerminal.Class } catch (Exception ex) { - await Application.Current!.Windows[0].Page!.DisplayAlertAsync("错误", ex.ToString(), "是"); + await Application.Current!.Windows[0].Page!.DisplayAlertAsync("错误", ex.Message.ToString(), "是"); } } @@ -165,7 +165,7 @@ namespace SunlightAggregationTerminal.Class } catch (Exception ex) { - await Application.Current!.Windows[0].Page!.DisplayAlertAsync("错误", ex.ToString(), "是"); + await Application.Current!.Windows[0].Page!.DisplayAlertAsync("网络错误", ex.Message.ToString(), "是"); } } }