Improper exception thrown on file open
rconde01 opened this issue · comments
FFStream::init calls close. If a file is not open, this close call fails. In a default configuration this is not a problem. However, if you set the stream to throw exceptions on fail, then you get an exception when opening a file.
The solutions is to change the code to:
if(is_open())
close();