Do not throw from DirectoryIterator::Read (#681)

Nicolas Hake 2011-10-29 01:16:13 +02:00
parent 283c6f2a94
commit 3ac1d08465
1 changed files with 4 additions and 2 deletions

View File

@ -990,7 +990,8 @@ void DirectoryIterator::Read(const char *dirname)
return;
default:
// Something else broke
throw std::runtime_error("DirectoryIterator::Read(const char*): Unable to read file system");
Log("DirectoryIterator::Read(const char*): Unable to read file system");
return;
}
}
// Insert files into list
@ -1015,7 +1016,8 @@ void DirectoryIterator::Read(const char *dirname)
return;
default:
// Something else broke
throw std::runtime_error("DirectoryIterator::Read(const char*): Unable to read file system");
Log("DirectoryIterator::Read(const char*): Unable to read file system");
return;
}
}
dirent *file;