Fix error message on file type versus port type