mirror of
https://github.com/kwsch/pkNX.git
synced 2026-08-20 01:14:12 -05:00
Rethrow with debugger attached
This commit is contained in:
@@ -145,6 +145,10 @@ private void OpenPath(string path, GameVersion gameOverride = GameVersion.Any)
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
// Rethrow to have a better debugging experience
|
||||
if (Debugger.IsAttached)
|
||||
throw;
|
||||
|
||||
WinFormsUtil.Error($"Failed to open -- {path}", ex.Message);
|
||||
}
|
||||
}
|
||||
@@ -197,6 +201,10 @@ private void OpenFolder(string path, GameVersion gameOverride)
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
// Rethrow to have a better debugging experience
|
||||
if (Debugger.IsAttached)
|
||||
throw;
|
||||
|
||||
var msg = "Failed to initialize ROM data." + Environment.NewLine +
|
||||
"Please ensure your dump is correctly set up, with updated patches merged in (if applicable).";
|
||||
var stack = ex.StackTrace ?? string.Empty;
|
||||
|
||||
Reference in New Issue
Block a user