better error messages with autocompletes, fixed #277