Skip to content

Commit

Permalink
fix pr
Browse files Browse the repository at this point in the history
  • Loading branch information
sleushunou committed Jul 17, 2024
1 parent d105610 commit 2e412f5
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Softeq.XToolkit.Common.iOS/Extensions/NSStringExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public static NSMutableAttributedString BuildAttributedStringFromHtml(
StringEncoding = encoding
};

NSError error = new NSError();
var error = new NSError();

try
{
Expand All @@ -72,9 +72,15 @@ public static NSMutableAttributedString BuildAttributedStringFromHtml(
catch (Exception ex)
{
logger?.Error(ex);
logger?.Info("Error message: " + error.Description);
throw;
}
finally
{
if (error != null)
{
logger?.Info("Error message: " + error.Description);
}
}
}

/// <summary>
Expand Down

0 comments on commit 2e412f5

Please sign in to comment.