[minor] Add more info to the errors.