diff options
| author | Adnan Maolood <[email protected]> | 2021-01-10 00:10:57 -0500 |
|---|---|---|
| committer | Adnan Maolood <[email protected]> | 2021-01-10 00:10:57 -0500 |
| commit | 3ed39e62d8952391287bd4ebf54a4893e3e6411b (patch) | |
| tree | 8c44fa8d5934340e425809981a2a7954ebf9c7f0 /examples | |
| parent | Add missing error handling (diff) | |
| download | go-gemini-3ed39e62d8952391287bd4ebf54a4893e3e6411b.tar.xz go-gemini-3ed39e62d8952391287bd4ebf54a4893e3e6411b.zip | |
Rename status.Message to status.Meta
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/client.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/client.go b/examples/client.go index f707f04..e3c7537 100644 --- a/examples/client.go +++ b/examples/client.go @@ -146,7 +146,7 @@ func main() { } fmt.Print(string(body)) } else { - fmt.Printf("%d %s: %s\n", resp.Status, resp.Status.Message(), resp.Meta) + fmt.Printf("%d %s\n", resp.Status, resp.Meta) os.Exit(1) } } |