Skip to content

fix: Fail with a specific error when unauthenticated

Kerri Miller requested to merge github/fork/carlpett/error-if-unauthed into trunk

Created by: carlpett

If resolutions fails, return the error instead of "no GitLab Projects found from remotes"

Description

Currently, a misleading/confusing error is returned if authentication fails. This PR changes it to return the actual error instead.

Related Issue

Possibly resolves #792 (closed) Possibly resolves #877 (closed)

How Has This Been Tested?

Tested with bad token, added some test cases

Screenshots (if appropriate)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation
  • Chore (Related to CI or Packaging to platforms)

Merge request reports