@cryptotaxi247 / kubo / commits / abb8374d4

commands: NewRequest: Documented error case

Matt Bell committed Nov 17, 2014 at 00:00 UTC abb8374d43ce1e0ad93e2f0641aee734529d9207
1 file changed +1
commands/request.go
+1
@@ -257,6 +257,7 @@ func NewEmptyRequest() (Request, error) {
257 }
258
259 // NewRequest returns a request initialized with given arguments
260 +// An non-nil error will be returned if the provided option values are invalid
261 func NewRequest(path []string, opts optMap, args []interface{}, cmd *Command, optDefs map[string]Option) (Request, error) {
262 if path == nil {
263 path = make([]string, 0)