Skip to content
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

Use errors.New() to output the error message and fix some typos #2195

Merged
merged 1 commit into from
Feb 21, 2017

Conversation

fate-grand-order
Copy link

Use errors.New() directly to output the error message and fix some typos I found.

Signed-off-by: fate-grand-order [email protected]

@codecov-io
Copy link

codecov-io commented Feb 16, 2017

Codecov Report

Merging #2195 into master will decrease coverage by -9.86%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #2195      +/-   ##
==========================================
- Coverage   61.73%   51.88%   -9.86%     
==========================================
  Files         125      119       -6     
  Lines       11450    11200     -250     
==========================================
- Hits         7069     5811    -1258     
- Misses       3495     4662    +1167     
+ Partials      886      727     -159
Impacted Files Coverage Δ
blobs.go 62.5% <ø> (ø)
configuration/configuration.go 68.59% <100%> (ø)
errors.go 70.76% <100%> (+51.72%)
notifications/endpoint.go 0% <ø> (-94.29%)
registry/storage/driver/gcs/gcs.go 0.4% <ø> (-68.94%)
registry/storage/driver/oss/oss.go 0.56% <ø> (-57.23%)
registry/storage/driver/s3-aws/s3.go 4.58% <ø> (-56.31%)
registry/storage/driver/s3-goamz/s3.go 0.5% <ø> (-50.76%)
notifications/metrics.go 61.66% <ø> (-38.34%)
manifests.go 52.11% <ø> (-21.8%)
... and 10 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update df5327f...6a8e2ca. Read the comment docs.

@@ -474,7 +475,7 @@ func (storage Storage) MarshalYAML() (interface{}, error) {
// Auth defines the configuration for registry authorization.
type Auth map[string]Parameters

// Type returns the auth type, such as htpasswd or token
// Type returns the auth type, such as passwd or token
Copy link
Contributor

Choose a reason for hiding this comment

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

this is not a typo!

Copy link
Author

Choose a reason for hiding this comment

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

oh, I'm so sorry! I will update it.

errors.go Outdated
@@ -77,7 +77,7 @@ func (err ErrManifestUnknownRevision) Error() string {
type ErrManifestUnverified struct{}

func (ErrManifestUnverified) Error() string {
return fmt.Sprintf("unverified manifest")
return fmt.Sprint("unverified manifest")
Copy link
Collaborator

Choose a reason for hiding this comment

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

just return "unverified manifest"

Copy link
Author

Choose a reason for hiding this comment

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

ok, the PR has updated. @dmcgowan

@dmcgowan
Copy link
Collaborator

LGTM

@dmcgowan dmcgowan merged commit 50133d6 into distribution:master Feb 21, 2017
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.

4 participants