Corrected spelling error, also improved error message formatting