Merge pull request from nolimet/bugfix/issue#368

Fix for issue  UnityWebRequestException extra line in exception message
pull/374/head
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
src/UniTask/Assets/Plugins/UniTask/Runtime

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.Collections.Generic;
@ -49,7 +49,7 @@ namespace Cysharp.Threading.Tasks
{
if (msg == null)
{
if (Text != null)
if(!string.IsNullOrWhiteSpace(Text))
{
msg = Error + Environment.NewLine + Text;
}