Throw an error if the file doesn't exists.