Skip to content

Commit

Permalink
Update EmbeddedFontLoader.iOS.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
rmarinho committed Jan 12, 2024
1 parent 20a6bd1 commit f61e998
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Core/src/Fonts/EmbeddedFontLoader.iOS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ public partial class EmbeddedFontLoader
if (uiFont != null)
return name;

throw new NSErrorException(error);
if (error != null)
throw new NSErrorException(error);
else
throw new InvalidOperationException("Unable to load font from the stream.");
}
catch (Exception ex)
{
Expand Down

0 comments on commit f61e998

Please sign in to comment.