print newline after error message

With some tests, the error message is joined with the first line of the traceback. I'm not sure if the fix is universally applicable, or if we need to check if `msg` already ends with a newline.