Skip to content

fix(registrybackend): name the registry backend in config errors - #713

Open
Tidehyc wants to merge 1 commit into
uber:masterfrom
Tidehyc:fix/registry-backend-config-errors
Open

Tidehyc wants to merge 1 commit into
uber:masterfrom
Tidehyc:fix/registry-backend-config-errors

Conversation

@Tidehyc

@Tidehyc Tidehyc commented Oct 8, 2026

Copy link
Copy Markdown

The registry blob and tag clients report config errors as [un]marshal hdfs config, a leftover from the HDFS backend, so the message points at the wrong component. Also wrap the underlying error, which was created with errors.New, so callers can inspect the cause instead of only reading a string.

Each factory gets a regression test that pins the message and the wrapped cause.

Fixes #710.

The registry blob and tag clients report config errors as
"[un]marshal hdfs config", a leftover from the HDFS backend, so the
message points at the wrong component. Also wrap the underlying error
so callers can inspect the cause instead of only reading a string.

Fixes uber#710.
Copilot AI balanced review requested due to automatic review settings October 8, 2026 11:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@CLAassistant

CLAassistant commented Oct 8, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Registry backend prefixes config errors with HDFS

3 participants