improve error message in `brew cask _dump`