Better error messages for git endpoint validation
What does this MR do and why?
pull mirroring only had one generic error message (URI) is not a valid HTTP Git repository
even when the error had nothing to do with validation. That made non-working pull mirroring settings very hard to debug.
This MR aims to give it more accurate error messages:
-
Not a git repository: Invalid response body
when the endpoint response is invalid -
Not a git repository: Invalid content-type
when the endpoint content-type is invalid -
(URI) endpoint error: (HTTP_STATUS) (ERROR_MESSAGE)
when the API call is not successful - and others with exceptions...
Closes #419642 (closed)
Edited by Patrick Cyiza