Get rid of \n characters in error message.