mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 06:27:45 +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
17 changed files with 44 additions and 46 deletions
|
@ -130,7 +130,7 @@ void FontDatabase::load_all_fonts_from_path(DeprecatedString const& root)
|
|||
auto current_directory = path_queue.dequeue();
|
||||
Core::DirIterator dir_iterator(current_directory, Core::DirIterator::SkipParentAndBaseDir);
|
||||
if (dir_iterator.has_error()) {
|
||||
dbgln("FontDatabase::load_all_fonts_from_path: {}", dir_iterator.error_string());
|
||||
dbgln("FontDatabase::load_all_fonts_from_path: {}", dir_iterator.error());
|
||||
continue;
|
||||
}
|
||||
while (dir_iterator.has_next()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue