Skip to content

Commit

Permalink
LibGfx: Ignore nonexistent font directories
Browse files Browse the repository at this point in the history
  • Loading branch information
easrng authored and ADKaster committed Jun 6, 2024
1 parent c5b2ba5 commit 9612d3b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Userland/Libraries/LibGfx/Font/FontDatabase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ void FontDatabase::load_all_fonts_from_uri(StringView uri)
{
auto root_or_error = Core::Resource::load_from_uri(uri);
if (root_or_error.is_error()) {
if (root_or_error.error().is_errno() && root_or_error.error().code() == ENOENT) {
return;
}
dbgln("FontDatabase::load_all_fonts_from_uri('{}'): {}", uri, root_or_error.error());
return;
}
Expand Down

0 comments on commit 9612d3b

Please sign in to comment.