提交 57b12162 编写于 作者: M Matt Warren

Unwrap aggregate exceptions before watson

上级 22936aa0
......@@ -18,6 +18,13 @@ internal static void OnFatalException(Exception exception)
Debugger.Break();
}
// don't fail fast with an aggregate exception that is masking true exception
var aggregate = exception as AggregateException;
if (aggregate != null && aggregate.InnerExceptions.Count == 1)
{
exception = aggregate.InnerExceptions[0];
}
Environment.FailFast(exception.ToString(), exception);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册