Return error if file unsupported