NewLife/NewLife.Remoting

InvokeAsync异常包装一层,增加接口名
大石头 authored at 2025-03-13 09:45:09
a9f35e9
Tree
1 Parent(s) c865e8a
Summary: 1 changed files with 1 additions and 1 deletions.
Modified +1 -1
Modified +1 -1
diff --git a/NewLife.Remoting/Clients/ClientBase.cs b/NewLife.Remoting/Clients/ClientBase.cs
index 3e4a70f..2e88891 100644
--- a/NewLife.Remoting/Clients/ClientBase.cs
+++ b/NewLife.Remoting/Clients/ClientBase.cs
@@ -363,7 +363,7 @@ public abstract class ClientBase : DisposeBase, IApiClient, ICommandClient, IEve
                 throw new ApiException(aex.Code, $"[{action}]{aex.Message}");
             }
 
-            throw;
+            throw new XException($"[{action}]{ex.Message}", ex);
         }
     }