Skip to content

Commit

Permalink
给NAV增加错误空内容描述,增加错误可读性
Browse files Browse the repository at this point in the history
  • Loading branch information
CHKZL committed Sep 16, 2024
1 parent c29fcc9 commit 68b89c4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Core/Network/Methods/Nav.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,14 @@ public class Nav
}
catch (Exception e)
{
Log.Error(nameof(_NAV), $"获取Nva状态出现错误,重试。获取到的状态内容文本:{WebText}",e);
if(string.IsNullOrEmpty(WebText))
{
Log.Warn(nameof(_NAV), $"获取Nva状态失败,获取到空内容,请检查网络连通性..");
}
else
{
Log.Error(nameof(_NAV), $"获取Nva状态出现错误,重试。获取到的状态内容文本:{WebText}",e);
}
if (attempt == maxAttempts - 1)
{
return null;
Expand Down

0 comments on commit 68b89c4

Please sign in to comment.