Skip to content

http_error_or_content() should print explicit error messages when the gitlab API raises an error #93

@ymansiaux

Description

@ymansiaux

Validation

  • When the user provides an incorrect token an appropriate error message is shown

image

  • When the user tries to access a repository which doesnt exist an appropriate error message is shown

image

  • When the user tries to access a repository which is private an appropriate error message is shown

image

Dev - Tech

Errors to deal with :

  • "404 Project Not Found" : the repository does not exist or is private

  • "401 Unauthorized": the token is missing or incorrect

  • "403 Forbidden" : shown (notably) when the user does not have the right "Role" (we need to ensure that this type of error can not be seen elsewhere

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions