diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2023-03-01 15:55:15 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-03-05 20:23:42 +0100 |
commit | 774f328783db31a02eba76d7c55d53a0b41b1508 (patch) | |
tree | 4fc9c393af9d93f2925d38234c9c520bb2e05d75 /Userland/DevTools/HackStudio | |
parent | a98ae8f35704737e37920b7ddb516ea703a3dca7 (diff) | |
download | serenity-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/DevTools/HackStudio')
-rw-r--r-- | Userland/DevTools/HackStudio/Dialogs/ProjectTemplatesModel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/DevTools/HackStudio/Dialogs/ProjectTemplatesModel.cpp b/Userland/DevTools/HackStudio/Dialogs/ProjectTemplatesModel.cpp index 71c8c9db78..0f8ed977c9 100644 --- a/Userland/DevTools/HackStudio/Dialogs/ProjectTemplatesModel.cpp +++ b/Userland/DevTools/HackStudio/Dialogs/ProjectTemplatesModel.cpp @@ -111,7 +111,7 @@ void ProjectTemplatesModel::rescan_templates() // Iterate over template manifest INI files in the templates path Core::DirIterator di(ProjectTemplate::templates_path(), Core::DirIterator::SkipDots); if (di.has_error()) { - warnln("DirIterator: {}", di.error_string()); + warnln("DirIterator: {}", di.error()); return; } |