forked from Mirrors/openclonk
Do not throw from DirectoryIterator::Read (#681)
parent
f9f01bef9a
commit
af8cc1320f
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue