ref(saml): Clean up metadata view error messages
diff --git a/src/sentry/auth/providers/saml2.py b/src/sentry/auth/providers/saml2.py
index 5a38dbca4c3cf..ef67f2b5a75b5 100644
--- a/src/sentry/auth/providers/saml2.py
+++ b/src/sentry/auth/providers/saml2.py
@@ -342,11 +342,11 @@ def dispatch(self, request, organization_slug):
         metadata = saml_settings.get_sp_metadata()
         errors = saml_settings.validate_metadata(metadata)
 
-        if len(errors) == 0:
-            resp = HttpResponse(content=metadata, content_type='text/xml')
-        else:
-            resp = HttpResponseServerError(content=', '.join(errors))
-        return resp
+        if len(errors) > 0:
+            message = '\n'.join(errors)
+            return HttpResponseServerError(content=message, content_type='plain/text')
+
+        return HttpResponse(content=metadata, content_type='text/xml')
 
 
 class SAML2Provider(Provider):

I'm okay with these being plain text, since the metadata is XML anyway.