Print error if not authorized to access API
In case the current user is not authorized to access the project's GitLab API a proper error message will be printed to the log.
Reason for improvement: https://gitlab.com/elga-gmbh/termgit/-/jobs/6999399814