Raise an error if the hash file is bad