Fixed a formatting bug with error messages