Skip to content

Commit

Permalink
Fix build break
Browse files Browse the repository at this point in the history
  • Loading branch information
AArnott committed Mar 25, 2019
1 parent 22ed0c5 commit 2023f29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MessagePack/IFormatterResolver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public static IMessagePackFormatter<T> GetFormatterWithVerify<T>(this IFormatter
// The fact that we're using static constructors to initialize this is an internal detail.
// Rethrow the inner exception if there is one.
// Do it carefully so as to not stomp on the original callstack.
ExceptionDispatchInfo.Capture(ex.InnerException ?? ex).Throw();
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Capture(ex.InnerException ?? ex).Throw();
throw new InvalidOperationException("Unreachable"); // keep the compiler happy
#else
var data = ex.Data; // suppress warning about not using `ex`
Expand Down Expand Up @@ -60,4 +60,4 @@ public FormatterNotRegisteredException(string message) : base(message)
{
}
}
}
}

0 comments on commit 2023f29

Please sign in to comment.