mirror of
https://github.com/QL-Win/QuickLook.git
synced 2026-05-09 02:07:50 +08:00
keep stack trace when rethrowing exception
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Runtime.ExceptionServices;
|
||||
using System.Windows;
|
||||
using System.Windows.Forms;
|
||||
using QuickLook.Helpers;
|
||||
@@ -202,7 +203,7 @@ namespace QuickLook
|
||||
}
|
||||
else
|
||||
{
|
||||
throw;
|
||||
ExceptionDispatchInfo.Capture(e).Throw();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user