Skip to content

Commit

Permalink
Merge pull request Cysharp#480 from Cysharp/hotfix/ClarifyMessageOnFa…
Browse files Browse the repository at this point in the history
…iledToNegociate

Clarify the message when it fails to negotiate with the server
  • Loading branch information
mayuki authored Nov 29, 2021
2 parents 3cc1bf5 + bdceb9a commit 1625260
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MagicOnion.Client/StreamingHubClientBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public async Task __ConnectAndSubscribeAsync(TReceiver receiver, CancellationTok
await firstMoveNextTask.ConfigureAwait(false);

// NOTE: C-core: If the execution reaches here, Connect method returns without any error (StatusCode = OK). but MessageVersion isn't provided from the server.
throw new RpcException(new Status(StatusCode.Internal, $"The message version of StreamingHub is not provided from the server."));
throw new RpcException(new Status(StatusCode.Internal, $"The request completed successfully (StatusCode = OK), but the StreamingHub client has failed to negotiate with the server."));
}

this.subscription = StartSubscribe(syncContext, firstMoveNextTask);
Expand Down

0 comments on commit 1625260

Please sign in to comment.