diff --git a/client/client.go b/client/client.go index ca7726ea1..63cd72800 100644 --- a/client/client.go +++ b/client/client.go @@ -54,6 +54,10 @@ var usage = func() { func getGitRegistry() *registry.GithubRegistry { s := strings.Split(*type_registry, "/") + if len(s) != 2 { + log.Fatalf("invalid type reegistry: %s", type_registry) + } + return registry.NewGithubRegistry(s[0], s[1]) }