Commit af2bfbe4 authored by Marc Gravell's avatar Marc Gravell

not all MessageFaulted have an exception

parent 8b4d2ce2
......@@ -269,7 +269,7 @@ protected IServer GetAnyMaster(ConnectionMultiplexer muxer)
muxer.MessageFaulted += (msg, ex, origin) =>
{
Writer?.WriteLine($"Faulted from '{origin}': '{msg}' - '{(ex == null ? "(null)" : ex.Message)}'");
if (ex.Data.Contains("got"))
if (ex != null && ex.Data.Contains("got"))
{
Writer?.WriteLine($"Got: '{ex.Data["got"]}'");
}
......
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