Some memory fixes

This commit is contained in:
Natsumi
2025-11-11 21:35:27 +11:00
parent c48d540722
commit 84e724f628
5 changed files with 32 additions and 4 deletions

View File

@@ -522,17 +522,23 @@ namespace VRCX
await streamReader.ReadToEndAsync()
);
}
var message = webException.Message;
if (webException.InnerException != null)
message += $" | Inner Exception: {webException.InnerException.Message}";
return new Tuple<int, string>(
-1,
webException.Message
message
);
}
catch (Exception e)
{
var message = e.Message;
if (e.InnerException != null)
message += $" | Inner Exception: {e.InnerException.Message}";
return new Tuple<int, string>(
-1,
e.Message
message
);
}
}