Added simple check to see if there is text.

Add this so we don't add a new line we don't need.
master
Jesse Stam 2022-06-23 09:31:05 +02:00
parent 9e2163616b
commit 226e272787
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;
} }