Skip to content

Commit 6d5ee4e

Browse files
committed
bug fix.
1 parent a24fec8 commit 6d5ee4e

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

Quick.Protocol/Utils/ExceptionUtils.cs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
using System;
2-
using System.Collections.Generic;
3-
using System.Linq;
4-
using System.Reflection;
52
using System.Text;
63

74
namespace Quick.Protocol.Utils
@@ -15,9 +12,9 @@ public static string GetExceptionString(Exception ex)
1512
while (tmpEx != null)
1613
{
1714
sb.AppendLine("------------------------------------------------------");
18-
sb.AppendLine("异常类型:" + ex.GetType().FullName);
19-
sb.AppendLine("异常消息:" + ex.Message);
20-
sb.AppendLine("异常堆栈:" + ex.StackTrace);
15+
sb.AppendLine("异常类型:" + tmpEx.GetType().FullName);
16+
sb.AppendLine("异常消息:" + tmpEx.Message);
17+
sb.AppendLine("异常堆栈:" + tmpEx.StackTrace);
2118
tmpEx = tmpEx.InnerException;
2219
}
2320
return sb.ToString();

0 commit comments

Comments
 (0)