Skip to content

Commit c3afee0

Browse files
Exceptions: Removes Unnecessary space added by CosmosException.ToString() (#5446)
## Description The method `ToString()` of `CosmosException` inserts an unusual, unnecessary space between the type and the message. #### Expected behavior The format should be {0}: {1}, without a leading space before the semicolon #### Actual behavior The format is {0} : {1}, with a space This PR removes the unnecessary space being added to the message. ## Type of change - [] Bug fix (non-breaking change which fixes an issue) ## Closing issues To automatically close an issue: closes #5433 Co-authored-by: Kiran Kumar Kolli <kirankk@microsoft.com>
1 parent c145985 commit c3afee0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Microsoft.Azure.Cosmos/src/Resource/CosmosExceptions/CosmosException.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ public override string ToString()
181181
{
182182
StringBuilder stringBuilder = new StringBuilder();
183183
stringBuilder.Append(this.GetType().FullName);
184-
stringBuilder.Append(" : ");
184+
stringBuilder.Append(": ");
185185

186186
this.ToStringHelper(stringBuilder);
187187

0 commit comments

Comments
 (0)