improved error message when trying to open an unsupported file format