From 222ad0ba57a05177fcf11b07ef19cb972a858035 Mon Sep 17 00:00:00 2001 From: Natsumi Date: Fri, 21 Nov 2025 00:41:47 +1100 Subject: [PATCH] Log InnerException without returning the error back to the UI --- Dotnet/WebApi.cs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Dotnet/WebApi.cs b/Dotnet/WebApi.cs index cc35fc7f..6847c425 100644 --- a/Dotnet/WebApi.cs +++ b/Dotnet/WebApi.cs @@ -522,23 +522,23 @@ namespace VRCX await streamReader.ReadToEndAsync() ); } - - var message = webException.Message; - if (webException.InnerException != null && webException.InnerException != webException) - message += $" | Inner Exception: {webException.InnerException}"; + + if (webException.InnerException != null) + Logger.Error($"{webException.Message} | {webException.InnerException}"); + return new Tuple( -1, - message + webException.Message ); } catch (Exception e) { - var message = e.Message; - if (e.InnerException != null && e.InnerException != e) - message += $" | Inner Exception: {e.InnerException}"; + if (e.InnerException != null) + Logger.Error($"{e.Message} | {e.InnerException}"); + return new Tuple( -1, - message + e.Message ); } }