fixed breaking on newlines in error messages