document error messages