From d834028fea8065c96812a02c5f8979869a534fd6 Mon Sep 17 00:00:00 2001 From: Brendan Melville Date: Tue, 17 Nov 2015 11:27:58 -0800 Subject: [PATCH] Fixing comment in describeType for lack of args. --- dm/dm.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dm/dm.go b/dm/dm.go index 239dacef2..214d555e6 100644 --- a/dm/dm.go +++ b/dm/dm.go @@ -201,11 +201,11 @@ func callAndPrintHttp(path, method, action string, reader io.ReadCloser) { fmt.Println(string(body)) } -// describeTemplate prints the schema for a type specified by either a +// describeType prints the schema for a type specified by either a // template URL or a fully qualified registry type name. func describeType(args []string) { if len(args) != 2 { - fmt.Fprintln(os.Stderr, "No template name supplied") + fmt.Fprintln(os.Stderr, "No type name or URL supplied") usage() } @@ -230,7 +230,7 @@ func describeType(args []string) { } schemaUrl := tUrl + ".schema" - callAndPrintHttp(schemaUrl, "GET", "get schema for type", nil) + callAndPrintHttp(schemaUrl, "GET", "get schema for type ("+tUrl+")", nil) } func loadTemplate(args []string) *expander.Template {