1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:37:35 +00:00

LibGfx: Add search path to debug output in FontDatabase

This helps with debugging why fonts cannot be found.
This commit is contained in:
Jelle Raaijmakers 2023-05-22 09:53:14 +02:00 committed by Andreas Kling
parent 4fc4bd6c3f
commit 4448a51824

View file

@ -129,7 +129,7 @@ void FontDatabase::load_all_fonts_from_path(DeprecatedString const& root)
auto current_directory = path_queue.dequeue();
Core::DirIterator dir_iterator(current_directory, Core::DirIterator::SkipParentAndBaseDir);
if (dir_iterator.has_error()) {
dbgln("FontDatabase::load_all_fonts_from_path: {}", dir_iterator.error());
dbgln("FontDatabase::load_all_fonts_from_path('{}'): {}", root, dir_iterator.error());
continue;
}
while (dir_iterator.has_next()) {