Fix error message so it is more accurate.