summaryrefslogtreecommitdiff
path: root/Userland/DevTools/HackStudio
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/DevTools/HackStudio
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/DevTools/HackStudio')
-rw-r--r--Userland/DevTools/HackStudio/Dialogs/ProjectTemplatesModel.cpp2
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;
}