Skip to content
This repository has been archived by the owner on May 26, 2023. It is now read-only.

improves error message in cache #38

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

jschicktanz
Copy link
Contributor

What this PR does / why we need it:
improves error message in the cache. the "not cached" msg was misleading, as the actual error was that the blob content didn't match with the descriptor data

Which issue(s) this PR fixes:
Fixes #

Special notes for your reviewer:

Release note:

@jschicktanz jschicktanz requested a review from a team as a code owner August 26, 2021 08:58
@gardener-robot gardener-robot added needs/review Needs review size/xs Size of pull request is tiny (see gardener-robot robot/bots/size.py) labels Aug 26, 2021
@gardener-robot-ci-1 gardener-robot-ci-1 added the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Aug 26, 2021
@gardener-robot-ci-3 gardener-robot-ci-3 added needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) and removed reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) labels Aug 26, 2021
ErrNotFound = errors.New("not cached")

// ErrInvalidBlob is an error that indicates that a blob is invalid
ErrInvalidBlob = errors.New("invalid blob")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure if we need a dedicated error for this.
MAybe it would be more helpful to return the real error with fmt.Errorf("invalid blob: %w", err)

@gardener-robot gardener-robot added the needs/changes Needs (more) changes label Aug 26, 2021
@gardener-robot
Copy link
Contributor

@jschicktanz You have pull request review with status CHANGES_REQUESTED, please check

@gardener-robot
Copy link
Contributor

@enrico-kaack-comp You have pull request review open invite, please check

@gardener-ci-robot
Copy link

The Gardener project currently lacks enough contributors to adequately respond to all issues and PRs.
This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed
    You can:
  • Mark this issue or PR as fresh with /remove-lifecycle stale
  • Mark this issue or PR as rotten with /lifecycle rotten
  • Close this issue or PR with /close

/lifecycle stale

@gardener-robot
Copy link
Contributor

@gardener-ci-robot Command /add is not available to you but only to a Maintainer, Member, Author.

@gardener-robot gardener-robot added the lifecycle/stale Nobody worked on this for 6 months (will further age) label Aug 9, 2022
@gardener-robot gardener-robot added lifecycle/rotten Nobody worked on this for 12 months (final aging stage) and removed lifecycle/stale Nobody worked on this for 6 months (will further age) labels Feb 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lifecycle/rotten Nobody worked on this for 12 months (final aging stage) needs/changes Needs (more) changes needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) needs/review Needs review size/xs Size of pull request is tiny (see gardener-robot robot/bots/size.py)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants