From 4448a518242bfad0a24755c3d530bcc97d303efe Mon Sep 17 00:00:00 2001 From: Jelle Raaijmakers Date: Mon, 22 May 2023 09:53:14 +0200 Subject: [PATCH] LibGfx: Add search path to debug output in `FontDatabase` This helps with debugging why fonts cannot be found. --- Userland/Libraries/LibGfx/Font/FontDatabase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibGfx/Font/FontDatabase.cpp b/Userland/Libraries/LibGfx/Font/FontDatabase.cpp index 36f892e24b..01e672a7f3 100644 --- a/Userland/Libraries/LibGfx/Font/FontDatabase.cpp +++ b/Userland/Libraries/LibGfx/Font/FontDatabase.cpp @@ -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()) {