error detail

master
neuecc 2020-07-04 06:29:08 +09:00
parent c1f75d9ebd
commit c65ae8d18e
1 changed files with 2 additions and 2 deletions

View File

@ -229,7 +229,7 @@ namespace Cysharp.Threading.Tasks
ValidateToken(token); ValidateToken(token);
if (completedCount == 0) if (completedCount == 0)
{ {
throw new InvalidOperationException("not yet completed."); throw new InvalidOperationException("Not yet completed, UniTask only allow to use await.");
} }
if (error != null) if (error != null)
@ -288,7 +288,7 @@ namespace Cysharp.Threading.Tasks
// It will cause call OnCompleted multiple time, invalid. // It will cause call OnCompleted multiple time, invalid.
if (!ReferenceEquals(oldContinuation, UniTaskCompletionSourceCoreShared.s_sentinel)) if (!ReferenceEquals(oldContinuation, UniTaskCompletionSourceCoreShared.s_sentinel))
{ {
throw new InvalidOperationException(); throw new InvalidOperationException("Already continuation registered, can not await twice or get Status after await.");
} }
continuation(state); continuation(state);