Commit 09fabdab authored by deepakverma's avatar deepakverma

Add innerexception message in case of a fault

parent 81f77850
......@@ -662,7 +662,7 @@ public static async Task<ConnectionMultiplexer> ConnectAsync(string configuratio
bool configured = await muxer.ReconfigureAsync(true, false, log, null, "connect").ObserveErrors().ForAwait();
if (!configured)
{
throw ExceptionFactory.UnableToConnect();
throw ExceptionFactory.UnableToConnect(muxer.failureMessage);
}
killMe = null;
return muxer;
......@@ -685,7 +685,7 @@ public static async Task<ConnectionMultiplexer> ConnectAsync(ConfigurationOption
bool configured = await muxer.ReconfigureAsync(true, false, log, null, "connect").ObserveErrors().ForAwait();
if (!configured)
{
throw ExceptionFactory.UnableToConnect();
throw ExceptionFactory.UnableToConnect(muxer.failureMessage);
}
killMe = null;
return muxer;
......@@ -733,7 +733,7 @@ public static ConnectionMultiplexer Connect(string configuration, TextWriter log
throw new TimeoutException();
}
}
if(!task.Result) throw ExceptionFactory.UnableToConnect();
if(!task.Result) throw ExceptionFactory.UnableToConnect(muxer.failureMessage);
killMe = null;
return muxer;
}
......
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