Commit 7e183a7e authored by DeepakVerma's avatar DeepakVerma

taking care of removing extra ; if InnerException is not set.

parent ef37548a
......@@ -106,8 +106,12 @@ internal static Exception NoConnectionAvailable(bool includeDetail, RedisCommand
StringBuilder exceptionmessage = new StringBuilder("No connection is available to service this operation: ");
exceptionmessage.Append(commandLabel);
string innermostExceptionstring = GetInnerMostExceptionMessage(innerException);
if (!string.IsNullOrEmpty(innermostExceptionstring))
{
exceptionmessage.Append("; ");
exceptionmessage.Append(GetInnerMostExceptionMessage(innerException));
exceptionmessage.Append(innermostExceptionstring);
}
var ex = new RedisConnectionException(ConnectionFailureType.UnableToResolvePhysicalConnection, exceptionmessage.ToString(), innerException);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment