Skip to content

Commit

Permalink
Fix some of the errors
Browse files Browse the repository at this point in the history
  • Loading branch information
vb2ae committed Jan 5, 2025
1 parent a96c669 commit d1e6c0f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Caliburn.Micro.Core/Screen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ async Task IActivate.ActivateAsync(CancellationToken cancellationToken)
catch (Exception ex)
{
Log.Error(ex);
OnInitializedAsyncException(ex);
}

Check notice

Code scanning / CodeQL

Generic catch clause Note

Generic catch clause.
}
try
Expand All @@ -128,6 +129,7 @@ async Task IActivate.ActivateAsync(CancellationToken cancellationToken)
}
catch (Exception ex)
{
Log.Error(ex);
OnActivatedAsyncException(ex);
}

Check notice

Code scanning / CodeQL

Generic catch clause Note

Generic catch clause.
await (Activated?.InvokeAllAsync(this, new ActivationEventArgs
Expand All @@ -153,6 +155,7 @@ async Task IDeactivate.DeactivateAsync(bool close, CancellationToken cancellatio
}
catch (Exception ex)
{
Log.Error(ex);
OnDeactivateAsyncException(ex);
}

Check notice

Code scanning / CodeQL

Generic catch clause Note

Generic catch clause.

Expand Down

0 comments on commit d1e6c0f

Please sign in to comment.