Skip to content

Conversation

@alanshaw
Copy link
Member

These are the errors from https://github.com/storacha/piri/blob/main/pkg/service/storage/ucan/access_grant.go that will now also be used in the signing service.

@alanshaw alanshaw requested a review from a team November 13, 2025 13:17
@alanshaw alanshaw requested a review from volmedo as a code owner November 13, 2025 13:17
Copy link
Member

@volmedo volmedo left a comment

Choose a reason for hiding this comment

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

LGTM, all comments nits and non-blocking.

Comment on lines 37 to 44
ErrUnknownCause = GrantError{
ErrorName: UnknownCauseErrorName,
Message: "unknown cause invocation",
}
ErrMissingCause = GrantError{
ErrorName: MissingCauseErrorName,
Message: "grant requires supporting contextual invocation",
}
Copy link
Member

Choose a reason for hiding this comment

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

I'd create New... methods for these just for consistency.

@alanshaw alanshaw merged commit 3cf123d into ash/feat/add-pdp-sign-caps Nov 13, 2025
4 checks passed
@alanshaw alanshaw deleted the ash/feat/add-access-grant-errors branch November 13, 2025 13:45
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.

3 participants