Use TypeError instead of RiakError.