mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-21 13:03:09 -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()
|
defer response.Close()
|
||||||
|
|
||||||
data, _ := ioutil.ReadAll(response.Reader)
|
data, err := ioutil.ReadAll(response.Reader)
|
||||||
fmt.Println(string(data))
|
if err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
|
|
||||||
if !bytes.Contains(data, []byte("AccessToken")) {
|
if !bytes.Contains(data, []byte("AccessToken")) {
|
||||||
return fmt.Errorf("failed to create-account: %s", string(data))
|
return fmt.Errorf("failed to create-account: %s", string(data))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue