Return the error on failed specializations with fn test --debug (#917)
This commit is contained in:
+3
-1
@@ -756,7 +756,9 @@ func fnTest(c *cli.Context) error {
|
||||
functionUrl.RawQuery = query.Encode()
|
||||
}
|
||||
|
||||
resp := httpRequest(c.String("method"), functionUrl.String(), c.String("body"), c.StringSlice("header"))
|
||||
headers := c.StringSlice("header")
|
||||
|
||||
resp := httpRequest(c.String("method"), functionUrl.String(), c.String("body"), headers)
|
||||
if resp.StatusCode < 400 {
|
||||
body, err := ioutil.ReadAll(resp.Body)
|
||||
util.CheckErr(err, "Function test")
|
||||
|
||||
Reference in New Issue
Block a user