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

Detect non-plugin content during install and error out. #24383

Merged
merged 1 commit into from
Jul 7, 2016

Conversation

anusha-ragunathan
Copy link
Contributor

Signed-off-by: Anusha Ragunathan anusha@docker.com

@@ -7,6 +7,9 @@ import "errors"
// ErrUnSupportedRegistry indicates that the registry does not support v2 protocol
var ErrUnSupportedRegistry = errors.New("Only V2 repositories are supported for plugin distribution")

// ErrUnSupportedMediaType indicates we are pulling content that's not a plugin
var ErrUnSupportedMediaType = errors.New("Content is not a plugin")
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: Unsupported instead of UnSupported.

Also, error text should be lowercase.

@aaronlehmann
Copy link
Contributor

LGTM

@vdemeester
Copy link
Member

LGTM 🐹 with @aaronlehmann comment addressed 👼
@anusha-ragunathan is it for 1.12.0 ? 👼

Signed-off-by: Anusha Ragunathan <anusha@docker.com>
@thaJeztah
Copy link
Member

nit was adresses; LGTM

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

Successfully merging this pull request may close these issues.

None yet

7 participants