diff options
author | Ignacio Roldán Etcheverry <neikeq@users.noreply.github.com> | 2022-08-29 01:22:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-29 01:22:39 +0200 |
commit | 58f8f3a40e8b068b9f7b92cae21e0cabb406dd07 (patch) | |
tree | 1ee491c6bd97355aaf8109c132ed7d064fec2f1b /modules/mono/editor/GodotTools/GodotTools.IdeMessaging | |
parent | f70e106010e10451822ba8f526fdcc7b60fa2981 (diff) | |
parent | 79f9f59a87c10bd85c7a31f4b5017bce5bfbbeb1 (diff) |
Merge pull request #64900 from raulsntos/dotnet/fix-exceptions
Fix various C# exceptions
Diffstat (limited to 'modules/mono/editor/GodotTools/GodotTools.IdeMessaging')
-rw-r--r-- | modules/mono/editor/GodotTools/GodotTools.IdeMessaging/Utils/NotifyAwaiter.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/mono/editor/GodotTools/GodotTools.IdeMessaging/Utils/NotifyAwaiter.cs b/modules/mono/editor/GodotTools/GodotTools.IdeMessaging/Utils/NotifyAwaiter.cs index d84a63c83c..a285d5fa97 100644 --- a/modules/mono/editor/GodotTools/GodotTools.IdeMessaging/Utils/NotifyAwaiter.cs +++ b/modules/mono/editor/GodotTools/GodotTools.IdeMessaging/Utils/NotifyAwaiter.cs @@ -21,14 +21,14 @@ namespace GodotTools.IdeMessaging.Utils public void OnCompleted(Action continuation) { if (this.continuation != null) - throw new InvalidOperationException("This awaiter has already been listened"); + throw new InvalidOperationException("This awaiter already has a continuation."); this.continuation = continuation; } public void SetResult(T result) { if (IsCompleted) - throw new InvalidOperationException("This awaiter is already completed"); + throw new InvalidOperationException("This awaiter is already completed."); IsCompleted = true; this.result = result; @@ -39,7 +39,7 @@ namespace GodotTools.IdeMessaging.Utils public void SetException(Exception exception) { if (IsCompleted) - throw new InvalidOperationException("This awaiter is already completed"); + throw new InvalidOperationException("This awaiter is already completed."); IsCompleted = true; this.exception = exception; |