Better error message with --get-hash option