GoogleCloudPlatform / GoogleCloudPlatform/functions-framework-conformance

Additional logging during failure

Open
#47 2 comments 1 reaction 0 assignees View on GitHub
enhancement P3
Dominant language
Go
Stars
22
Forks
14
PR merge metrics
No merged PRs in 30d

Description

In the process of trying to use the test client, I made a mistake between function types and it caused a failure:

```
| 2020/10/21 22:30:29 Validating for http...
| 2020/10/21 22:30:29 Framework server started.
| 2020/10/21 22:30:30 HTTP validation started...
| 2020/10/21 22:30:30 Framework server shut down. Wrote logs to serverlog_stdout.txt and serverlog_stderr.txt.
| 2020/10/21 22:30:30 Validation failure: failed to unmarshal json: json: cannot unmarshal object into Go value of type string
```

It would have been helpful to have more details about what caused the JSON to fail to be unmarshalled here. Perhaps a `--verbose` flag would include this?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.