Fix typo and formatting on error messages

Just a small commit here to improve some of the error messages.