refactor<Exception>: add context to exception to filter exceptions; each page has it's own error display control

This commit is contained in:
leo 2023-10-13 11:16:03 +08:00
parent c85052bbcc
commit 838e688a0c
15 changed files with 79 additions and 44 deletions

View file

@ -14,7 +14,7 @@ namespace SourceGit.Views.Popups {
public FastForwardWithoutCheckout(string repo, string branch, string upstream) {
int idx = upstream.IndexOf('/');
if (idx < 0 || idx == upstream.Length - 1) {
Models.Exception.Raise($"Invalid upstream: {upstream}");
App.Exception(repo, $"Invalid upstream: {upstream}");
return;
}