diff --git a/Softeq.XToolkit.Common.iOS/Extensions/NSStringExtensions.cs b/Softeq.XToolkit.Common.iOS/Extensions/NSStringExtensions.cs index 3811527e..90f4fedd 100644 --- a/Softeq.XToolkit.Common.iOS/Extensions/NSStringExtensions.cs +++ b/Softeq.XToolkit.Common.iOS/Extensions/NSStringExtensions.cs @@ -74,13 +74,22 @@ public static NSMutableAttributedString BuildAttributedStringFromHtml( catch (Exception ex) { logger?.Error(ex); + if (html == null) + { + logger?.Error("String: null"); + } + else + { + logger?.Error("String: " + html); + } + throw; } finally { if (error != null) { - logger?.Info("Error message: " + error.Description); + logger?.Error("Error message: " + error.Description); } } }