aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--client.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/client.go b/client.go
index 16644c5..d207ebb 100644
--- a/client.go
+++ b/client.go
@@ -170,6 +170,9 @@ func (c *Client) Register(a *Account) error {
// Query Location
r.Resource = ResRegister
_, err = c.post(c.Location, a, r)
+ if err != nil {
+ return err
+ }
fallthrough
case http.StatusCreated:
// Agree to TOS