We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7590847 commit 010c59bCopy full SHA for 010c59b
1 file changed
CP2077SaveEditor/Views/Form1.cs
@@ -528,6 +528,14 @@ private void openSaveButton_Click(object sender, EventArgs e)
528
maxProgress = 0;
529
currentNode = string.Empty;
530
531
+ if (e.Error != null)
532
+ {
533
+ File.WriteAllText("error.txt", e.Error.Message + Environment.NewLine + e.Error.StackTrace);
534
+ MessageBox.Show("Failed to parse save file: " + e.Error.Message + " An error.txt file has been generated with additional information.");
535
+ statusLabel.Text = "Load cancelled.";
536
+ return;
537
+ }
538
+
539
if (wrongDefaultInfo != null)
540
{
541
if (new WrongDefaultDialog(wrongDefaultInfo.ClassName, wrongDefaultInfo.PropertyName, wrongDefaultInfo.Value).ShowDialog() != DialogResult.OK)
0 commit comments