Skip to content

More error verbosity when the API check fails

The error message displayed when the check utility runs is not useful.

I agree that error details can be found in the gitlab-shell logs but:

  • When such check utility fails I expect to have details of the error in-hand without having to search where could be logged the underlying error and praise if this one is indeed logged somewhere.

  • More verbosity helps to take the right action and avoid misleading message (here the irrelevant "Try fixing it:" for my use case):

image

My use case:

I compiled Ruby against a specific OpenSSL version but forgot to provide CA Root Certificates to this OpenSSL setup. Consequence is that all HTTPS URLS (including the gitlab api url) have certs that can't be validated (by ruby code, not from the system), so a check failure. The current message is just useless to help me understand the issue.

The MR adds the behind-the-scene message (the one that is logged) in the output, which is way more useful in understanding the issue:

image

Merge request reports