ast: Improve wording of error message