Skip to content

Commit

Permalink
Update src/EventStore.Client/EventStoreClientSettings.ConnectionStrin…
Browse files Browse the repository at this point in the history
…g.cs

Co-authored-by: Hayley Campbell <hayleyjeancampbell@gmail.com>
  • Loading branch information
shaan1337 and hayley-jean committed Jul 6, 2020
1 parent bfad201 commit e835a46
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public static EventStoreClientSettings Parse(string connectionString) {
var questionMarkIndex = connectionString.IndexOf(QuestionMark, currentIndex, StringComparison.Ordinal);
if ((questionMarkIndex == -1 && slashIndex != connectionString.Length - Slash.Length)
|| (questionMarkIndex != -1 && questionMarkIndex != currentIndex))
throw new ConnectionStringParseException($"The connection string may contain only a question mark (?) after specifying the hosts and a forward slash (/) but the following character was found: '{connectionString[currentIndex]}'");
throw new ConnectionStringParseException($"The connection string must contain a question mark (?) following the hosts if more arguments are specified. The following character was found instead: '{connectionString[currentIndex]}'");

var options = new Dictionary<string, string>();
if (questionMarkIndex != -1) {
Expand Down

0 comments on commit e835a46

Please sign in to comment.