I implemented a small program that can extract (and via fuse mount) a certain archive format. I use boost::filesystem::ifstream
, but on error (e.g. the file a user wants to extract does not exist) I get very nondescript error messages. I wonder is there a way to get better error messages for IO related problems in C++?
On a related note I wonder whether I should have used C's FILE*
or in the case of the fuse filesystem just plain file descriptors? Because strerror(errno)
is way better than what iostreams are giving me.