summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Userland/Applications/KeyboardMapper/KeyboardMapperWidget.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/Userland/Applications/KeyboardMapper/KeyboardMapperWidget.cpp b/Userland/Applications/KeyboardMapper/KeyboardMapperWidget.cpp
index dba547022b..77322956b8 100644
--- a/Userland/Applications/KeyboardMapper/KeyboardMapperWidget.cpp
+++ b/Userland/Applications/KeyboardMapper/KeyboardMapperWidget.cpp
@@ -126,7 +126,10 @@ void KeyboardMapperWidget::create_frame()
void KeyboardMapperWidget::load_from_file(String filename)
{
auto result = Keyboard::CharacterMapFile::load_from_file(filename);
- VERIFY(result.has_value());
+ if (!result.has_value()) {
+ dbgln("Failed to load character map from file {}", filename);
+ return;
+ }
m_filename = filename;
m_character_map = result.value();