Print error if file is not supplied.