keep stack trace when rethrowing exception

This commit is contained in:
Paddy Xu
2017-05-28 00:19:51 +03:00
parent f4e68c109e
commit 7e95d5ea2b
3 changed files with 6 additions and 3 deletions

View File

@@ -1,5 +1,6 @@
using System;
using System.IO;
using System.Runtime.ExceptionServices;
using System.Windows.Threading;
namespace QuickLook.Plugin.PDFViewer
@@ -58,7 +59,7 @@ namespace QuickLook.Plugin.PDFViewer
}), DispatcherPriority.Loaded).Wait();
if (exception != null)
throw exception;
ExceptionDispatchInfo.Capture(exception).Throw();
}
public void Cleanup()