Skip to content

Commit

Permalink
Fix error handler for updater
Browse files Browse the repository at this point in the history
  • Loading branch information
KillzXGaming committed Apr 25, 2022
1 parent 937dda7 commit c0123b4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Track Studio/src/MainWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,10 @@ private void CheckUpdates()
}
catch (Exception ex)
{
TinyFileDialog.MessageBoxErrorOk($"Failed to update! {ex}. Details:\n\n {ex.StackTrace}");
string message = ex.Message.Replace("'", "");

Clipboard.SetText($"{ex.Message} \n{ex.StackTrace}");
TinyFileDialog.MessageBoxErrorOk($"Failed to open file format! {message} Details copied to clipboard!");
}
}

Expand Down

0 comments on commit c0123b4

Please sign in to comment.