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