From abb8374d43ce1e0ad93e2f0641aee734529d9207 Mon Sep 17 00:00:00 2001 From: Matt Bell <mappum@gmail.com> Date: Mon, 17 Nov 2014 00:00:16 -0800 Subject: [PATCH] commands: NewRequest: Documented error case --- commands/request.go | 1 + 1 file changed, 1 insertion(+) diff --git a/commands/request.go b/commands/request.go index d71011d91..d987770b9 100644 --- a/commands/request.go +++ b/commands/request.go @@ -257,6 +257,7 @@ func NewEmptyRequest() (Request, error) { } // NewRequest returns a request initialized with given arguments +// An non-nil error will be returned if the provided option values are invalid func NewRequest(path []string, opts optMap, args []interface{}, cmd *Command, optDefs map[string]Option) (Request, error) { if path == nil { path = make([]string, 0) -- GitLab