mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-17 02:53:11 -06:00
Don't ignore errors
This commit is contained in:
parent
85155f52b3
commit
3121a9f17b
|
|
@ -493,8 +493,10 @@ func testCreateAccount(dockerClient *client.Client, v string, containerID string
|
|||
}
|
||||
defer response.Close()
|
||||
|
||||
data, _ := ioutil.ReadAll(response.Reader)
|
||||
fmt.Println(string(data))
|
||||
data, err := ioutil.ReadAll(response.Reader)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if !bytes.Contains(data, []byte("AccessToken")) {
|
||||
return fmt.Errorf("failed to create-account: %s", string(data))
|
||||
|
|
|
|||
Loading…
Reference in a new issue