Generate better error messages.