-
Notifications
You must be signed in to change notification settings - Fork 510
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
type the No valid trust data error #1212
Conversation
client/client.go
Outdated
@@ -595,6 +595,12 @@ type TargetSignedStruct struct { | |||
Signatures []data.Signature | |||
} | |||
|
|||
type NoValidTrustDataError string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we want to name this something more like NoSuchTarget
? Because there is already a ErrRepositoryNotExist
which returns text similar to "... does not have trust data for ...", and the error type name would be clearer I think. Similarly, would be nice if we could say something like "No valid trust data for target %s"
instead.
Can we also return the same error in |
client/client.go
Outdated
@@ -595,6 +595,12 @@ type TargetSignedStruct struct { | |||
Signatures []data.Signature | |||
} | |||
|
|||
type ErrNoSuchTarget string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There seems to be a lint error because this error doesn't have a comment. (You can verify with make lint
).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than the linting issue, this LGTM on green.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM on green
Signed-off-by: Kyle Spiers <[email protected]>
Signed-off-by: Kyle Spiers [email protected]