summaryrefslogtreecommitdiff
path: root/Userland/Applications/KeyboardSettings/KeyboardSettingsWidget.cpp
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2023-03-01 15:55:15 +0000
committerAndreas Kling <kling@serenityos.org>2023-03-05 20:23:42 +0100
commit774f328783db31a02eba76d7c55d53a0b41b1508 (patch)
tree4fc9c393af9d93f2925d38234c9c520bb2e05d75 /Userland/Applications/KeyboardSettings/KeyboardSettingsWidget.cpp
parenta98ae8f35704737e37920b7ddb516ea703a3dca7 (diff)
downloadserenity-774f328783db31a02eba76d7c55d53a0b41b1508.zip
LibCore+Everywhere: Return an Error from DirIterator::error()
This also removes DirIterator::error_string(), since the same strerror() string will be included when you print the Error itself. Except in `ls` which is still using fprintf() for now.
Diffstat (limited to 'Userland/Applications/KeyboardSettings/KeyboardSettingsWidget.cpp')
-rw-r--r--Userland/Applications/KeyboardSettings/KeyboardSettingsWidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Applications/KeyboardSettings/KeyboardSettingsWidget.cpp b/Userland/Applications/KeyboardSettings/KeyboardSettingsWidget.cpp
index 83624bef9f..f77cfa546d 100644
--- a/Userland/Applications/KeyboardSettings/KeyboardSettingsWidget.cpp
+++ b/Userland/Applications/KeyboardSettings/KeyboardSettingsWidget.cpp
@@ -61,7 +61,7 @@ private:
Core::DirIterator iterator("/res/keymaps/", Core::DirIterator::Flags::SkipDots);
if (iterator.has_error()) {
- GUI::MessageBox::show(nullptr, DeprecatedString::formatted("Error on reading mapping file list: {}", iterator.error_string()), "Keyboard settings"sv, GUI::MessageBox::Type::Error);
+ GUI::MessageBox::show(nullptr, DeprecatedString::formatted("Error on reading mapping file list: {}", iterator.error()), "Keyboard settings"sv, GUI::MessageBox::Type::Error);
GUI::Application::the()->quit(-1);
}