diff options
author | NonStdModel <nonstandardmodel@gmail.com> | 2021-06-04 20:26:39 +0200 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-06-06 00:21:12 +0100 |
commit | 0e4dc5f7a1424021faf2d4935409e37dd84b6e10 (patch) | |
tree | baa66b5f875023ec0e39208642e9a7da2a08780e /Userland/Libraries/LibKeyboard | |
parent | 484ec946246f75f318d1aedf4ad987d84d2b5fd0 (diff) | |
download | serenity-0e4dc5f7a1424021faf2d4935409e37dd84b6e10.zip |
LibKeyboard: Use correct filename in debug message
Diffstat (limited to 'Userland/Libraries/LibKeyboard')
-rw-r--r-- | Userland/Libraries/LibKeyboard/CharacterMapFile.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Userland/Libraries/LibKeyboard/CharacterMapFile.cpp b/Userland/Libraries/LibKeyboard/CharacterMapFile.cpp index f138b9ae44..362b3a5f21 100644 --- a/Userland/Libraries/LibKeyboard/CharacterMapFile.cpp +++ b/Userland/Libraries/LibKeyboard/CharacterMapFile.cpp @@ -25,14 +25,16 @@ Optional<CharacterMapData> CharacterMapFile::load_from_file(const String& filena auto file = Core::File::construct(path); file->open(Core::OpenMode::ReadOnly); if (!file->is_open()) { - dbgln("Failed to open {}: {}", filename, file->error_string()); + dbgln("Failed to open {}: {}", path, file->error_string()); return {}; } auto file_contents = file->read_all(); auto json_result = JsonValue::from_string(file_contents); - if (!json_result.has_value()) + if (!json_result.has_value()) { + dbgln("Failed to load character map from file {}", path); return {}; + } auto json = json_result.value().as_object(); Vector<u32> map = read_map(json, "map"); |