Merge pull request #369 from nolimet/bugfix/issue#368

Fix for issue #368 UnityWebRequestException extra line in exception message
master
Yoshifumi Kawai 2022-06-23 17:46:29 +09:00 committed by GitHub
commit 78db78c7bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
#if ENABLE_UNITYWEBREQUEST && (!UNITY_2019_1_OR_NEWER || UNITASK_WEBREQUEST_SUPPORT) #if ENABLE_UNITYWEBREQUEST && (!UNITY_2019_1_OR_NEWER || UNITASK_WEBREQUEST_SUPPORT)
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
@ -49,7 +49,7 @@ namespace Cysharp.Threading.Tasks
{ {
if (msg == null) if (msg == null)
{ {
if (Text != null) if(!string.IsNullOrWhiteSpace(Text))
{ {
msg = Error + Environment.NewLine + Text; msg = Error + Environment.NewLine + Text;
} }