May be handle the problem immediately, ie do an return error("...") here
(though I suppose when the file is too short, it will fail later anyway when doing `filein >> hashIn`, so it may not matter apart from clarity)