Make error message case and punctuation more consistent.