mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 22:30:31 +00:00
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.
This commit is contained in:
parent
a98ae8f357
commit
774f328783
Notes:
sideshowbarker
2024-07-17 06:29:49 +09:00
Author: https://github.com/AtkinsSJ
Commit: 774f328783
Pull-request: https://github.com/SerenityOS/serenity/pull/17694
17 changed files with 44 additions and 46 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue