add more helpful information to error message