Skip to content

Commit

Permalink
Print overall blocking errors to log
Browse files Browse the repository at this point in the history
  • Loading branch information
Noggog committed Nov 29, 2020
1 parent 47e537d commit 09d91f9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Synthesis.Bethesda.GUI/ViewModels/Config/ProfileVM.cs
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,13 @@ public ProfileVM(ConfigurationVM parent, GameRelease? release = null, string? id
}
return GetResponse<PatcherVM>.Succeed(null!);
})
.Do(x =>
{
if (x.Failed)
{
Log.Logger.Warning($"Encountered blocking overall error: {x.Reason}");
}
})
.ToGuiProperty(this, nameof(LargeOverallError), GetResponse<PatcherVM>.Fail("Uninitialized"));

_BlockingError = Observable.CombineLatest(
Expand Down

0 comments on commit 09d91f9

Please sign in to comment.