Improved error message for unknown file endings