Skip to content

Add contract not found error#391

Merged
ChrisSchinnerl merged 4 commits intomasterfrom
christopher/dont-return-internal-error-contract-not-found
Mar 19, 2026
Merged

Add contract not found error#391
ChrisSchinnerl merged 4 commits intomasterfrom
christopher/dont-return-internal-error-contract-not-found

Conversation

@chris124567
Copy link
Member

Re: SiaFoundation/coreutils#405

Will need to update hostd to use this error instead of go.sia.tech/hostd/host/contracts.ErrNotFound

Copilot AI review requested due to automatic review settings March 18, 2026 20:15
Copy link

@claude claude bot left a comment

Choose a reason for hiding this comment

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

Claude Code Review

This repository is configured for manual code reviews. Comment @claude review to trigger a review.

@github-project-automation github-project-automation bot moved this to In Progress in Sia Mar 18, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a new exported RHPv4 RPC error to represent a missing/unknown contract on the host, aligning coreutils with downstream usage (e.g., hostd) per the linked issue.

Changes:

  • Introduce ErrContractNotFound as an RPCError sentinel with description "contract not found".
  • Document the new error in rhp/v4/errors.go alongside existing RHPv4 host errors.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ChrisSchinnerl ChrisSchinnerl merged commit 2e8e497 into master Mar 19, 2026
13 checks passed
@ChrisSchinnerl ChrisSchinnerl deleted the christopher/dont-return-internal-error-contract-not-found branch March 19, 2026 09:22
@github-project-automation github-project-automation bot moved this from In Progress to Done in Sia Mar 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants