Fix error message and formatting.

Hi, I found error message typo and insufficient formatting. So I fixed them.