mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-07 06:56:04 +02:00
Log InnerException without returning the error back to the UI
This commit is contained in:
+9
-9
@@ -522,23 +522,23 @@ namespace VRCX
|
|||||||
await streamReader.ReadToEndAsync()
|
await streamReader.ReadToEndAsync()
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
var message = webException.Message;
|
if (webException.InnerException != null)
|
||||||
if (webException.InnerException != null && webException.InnerException != webException)
|
Logger.Error($"{webException.Message} | {webException.InnerException}");
|
||||||
message += $" | Inner Exception: {webException.InnerException}";
|
|
||||||
return new Tuple<int, string>(
|
return new Tuple<int, string>(
|
||||||
-1,
|
-1,
|
||||||
message
|
webException.Message
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
var message = e.Message;
|
if (e.InnerException != null)
|
||||||
if (e.InnerException != null && e.InnerException != e)
|
Logger.Error($"{e.Message} | {e.InnerException}");
|
||||||
message += $" | Inner Exception: {e.InnerException}";
|
|
||||||
return new Tuple<int, string>(
|
return new Tuple<int, string>(
|
||||||
-1,
|
-1,
|
||||||
message
|
e.Message
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user