From 7c2ceac7c505bb329f2c0a6ee72e4730fbe9f81e Mon Sep 17 00:00:00 2001 From: Marc Abramowitz Date: Thu, 25 Jan 2018 07:28:20 -0800 Subject: [PATCH] Fix test failures --- request.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/request.go b/request.go index cc986f1..6e14c12 100644 --- a/request.go +++ b/request.go @@ -558,6 +558,9 @@ func handlePointer(attribute interface{}, args []string, fieldType reflect.Type, case map[string]interface{}: var err error concreteVal, err = handleStruct(attribute, args, fieldType, fieldValue) + if err != nil { + return reflect.Value{}, ErrUnsupportedPtrType(reflect.ValueOf(attribute), fieldType, structField) + } return concreteVal.Elem(), err default: return reflect.Value{}, ErrUnsupportedPtrType(reflect.ValueOf(attribute), fieldType, structField)