Generate nicer client-side error messages using the document singular
alias.