Sfoglia il codice sorgente

Update http_util.go (#488)

type error.
soyoo 4 anni fa
parent
commit
1255aadd20
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      common/http_util.go

+ 1 - 1
common/http_util.go

@@ -46,7 +46,7 @@ func Send(logger api.Logger, client *http.Client, bodyType string, method string
 			switch value.(type) {
 			case []interface{}, map[string]interface{}:
 				if temp, err := json.Marshal(value); err != nil {
-					return nil, fmt.Errorf("fail to parse fomr value: %v", err)
+					return nil, fmt.Errorf("fail to parse from value: %v", err)
 				} else {
 					vstr = string(temp)
 				}