Show all inner exceptions
This commit is contained in:
@@ -515,13 +515,15 @@ class MainViewModel : BaseViewModel, IFontResolver, ICanCheckShutdown
|
|||||||
{
|
{
|
||||||
LogInfo(e.StackTrace);
|
LogInfo(e.StackTrace);
|
||||||
}
|
}
|
||||||
if (e.InnerException != null)
|
var otherException = e.InnerException;
|
||||||
|
while (otherException != null)
|
||||||
{
|
{
|
||||||
LogInfo("Inner exception: " + e.InnerException.Message);
|
LogInfo(">> Inner exception: " + otherException.Message);
|
||||||
if (e.InnerException.StackTrace != null)
|
if (otherException.StackTrace != null)
|
||||||
{
|
{
|
||||||
LogInfo(e.InnerException.StackTrace);
|
LogInfo(otherException.StackTrace);
|
||||||
}
|
}
|
||||||
|
otherException = otherException.InnerException;
|
||||||
}
|
}
|
||||||
LogInfo("Please report this error to a programmer or fix the issue listed above.");
|
LogInfo("Please report this error to a programmer or fix the issue listed above.");
|
||||||
IsCreatingPDF = false;
|
IsCreatingPDF = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user